summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2018-05-16 18:59:51 -0700
committerGitHub <noreply@github.com>2018-05-16 18:59:51 -0700
commit0fbd0f535e566bcde591701adc2de51ee0f020af (patch)
tree0f9ad83b02b124bae036fe45fd659a146f63221e /build.cmd
parenta8d40ac8362bacd98f7fa422190fe66916e040e8 (diff)
downloadcoreclr-0fbd0f535e566bcde591701adc2de51ee0f020af.tar.gz
coreclr-0fbd0f535e566bcde591701adc2de51ee0f020af.tar.bz2
coreclr-0fbd0f535e566bcde591701adc2de51ee0f020af.zip
Generate EventSources Representing DotNETRuntime Eventing Providers (#18007)
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd18
1 files changed, 14 insertions, 4 deletions
diff --git a/build.cmd b/build.cmd
index 8b3f899cd9..c7bac26703 100644
--- a/build.cmd
+++ b/build.cmd
@@ -359,11 +359,12 @@ REM Find python and set it to the variable PYTHON
echo import sys; sys.stdout.write(sys.executable) | (py -3 || py -2 || python3 || python2 || python) > %TEMP%\pythonlocation.txt 2> NUL
set /p PYTHON=<%TEMP%\pythonlocation.txt
+if NOT DEFINED PYTHON (
+ echo %__MsgPrefix%Error: Could not find a python installation
+ exit /b 1
+)
+
if /i "%__BuildNative%"=="1" (
- if NOT DEFINED PYTHON (
- echo %__MsgPrefix%Error: Could not find a python installation
- exit /b 1
- )
echo %__MsgPrefix%Laying out dynamically generated files consumed by the native build system
echo %__MsgPrefix%Laying out dynamically generated Event test files and etmdummy stub functions
@@ -376,6 +377,12 @@ if /i "%__BuildNative%"=="1" (
"!PYTHON!" -B -Wall %__SourceDir%\scripts\genEtwProvider.py --man %__SourceDir%\vm\ClrEtwAll.man --intermediate %__IntermediatesIncDir% --exc %__SourceDir%\vm\ClrEtwAllMeta.lst || exit /b 1
)
+if /i "%__BuildCoreLib%"=="1" (
+
+ echo %__MsgPrefix%Laying out dynamically generated EventSource classes
+ "!PYTHON!" -B -Wall %__SourceDir%\scripts\genRuntimeEventSources.py --man %__SourceDir%\vm\ClrEtwAll.man --intermediate %__IntermediatesEventingDir% || exit /b 1
+)
+
if /i "%__DoCrossArchBuild%"=="1" (
if NOT DEFINED PYTHON (
echo %__MsgPrefix%Error: Could not find a python installation
@@ -392,6 +399,9 @@ if /i "%__DoCrossArchBuild%"=="1" (
echo %__MsgPrefix%Laying out dynamically generated EventPipe Implementation
"!PYTHON!" -B -Wall %__SourceDir%\scripts\genEventPipe.py --man %__SourceDir%\vm\ClrEtwAll.man --intermediate !__CrossCompIntermediatesEventingDir!\eventpipe --nonextern || exit /b 1
+ echo %__MsgPrefix%Laying out dynamically generated EventSource classes
+ "!PYTHON!" -B -Wall %__SourceDir%\scripts\genRuntimeEventSources.py --man %__SourceDir%\vm\ClrEtwAll.man --intermediate !__CrossCompIntermediatesEventingDir! || exit /b 1
+
echo %__MsgPrefix%Laying out ETW event logging interface
"!PYTHON!" -B -Wall %__SourceDir%\scripts\genEtwProvider.py --man %__SourceDir%\vm\ClrEtwAll.man --intermediate !__CrossCompIntermediatesIncDir! --exc %__SourceDir%\vm\ClrEtwAllMeta.lst || exit /b 1
)