summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2012-06-11 16:23:17 -0700
committerIgor Zinkovsky <igorzi@microsoft.com>2012-06-13 15:36:08 -0700
commit35a1421e9670e7b5bc042758170d20673aed666f (patch)
tree147bad29287b926081406d4ec5dcdd4c8b1cd762 /vcbuild.bat
parent74c8041fb6d781981e5f7e58167dd4ac3c487a7d (diff)
downloadnode-new-35a1421e9670e7b5bc042758170d20673aed666f.tar.gz
Windows: Enable ETW events.
This commit enables ETW events to be fired on Windows for existing DTrace probes. ETW instrumentation is enabled by default. It is possible to build node.exe without ETW instrumentation by using --without-etw option with configure script.
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index e9e3ebc45d..20d4b03bde 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -28,6 +28,9 @@ set msi=
set licensertf=
set upload=
set jslint=
+set noetw=
+set noetw_arg=
+set noetw_msi_arg=
:next-arg
if "%1"=="" goto args-done
@@ -41,6 +44,7 @@ if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
if /i "%1"=="nosign" set nosign=1&goto arg-ok
if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
+if /i "%1"=="noetw" set noetw=1&goto arg-ok
if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
if /i "%1"=="test-uv" set test=test-uv&goto arg-ok
if /i "%1"=="test-internet" set test=test-internet&goto arg-ok
@@ -65,13 +69,14 @@ if defined jslint goto jslint
if "%config%"=="Debug" set debug_arg=--debug
if "%target_arch%"=="x64" set msiplatform=x64
if defined nosnapshot set nosnapshot_arg=--without-snapshot
+if defined noetw set noetw_arg=--without-etw& set noetw_msi_arg=/p:NoETW=1
:project-gen
@rem Skip project generation if requested.
if defined noprojgen goto msbuild
@rem Generate the VS project.
-python configure %debug_arg% %nosnapshot_arg% --dest-cpu=%target_arch%
+python configure %debug_arg% %nosnapshot_arg% %noetw_arg% --dest-cpu=%target_arch%
if errorlevel 1 goto create-msvs-files-failed
if not exist node.sln goto create-msvs-files-failed
echo Project files generated.
@@ -116,7 +121,7 @@ if not defined msi goto run
python "%~dp0tools\getnodeversion.py" > "%temp%\node_version.txt"
if not errorlevel 0 echo Cannot determine current version of node.js & goto exit
for /F "tokens=*" %%i in (%temp%\node_version.txt) do set NODE_VERSION=%%i
-msbuild "%~dp0tools\msvs\msi\nodemsi.sln" /m /t:Clean,Build /p:Configuration=%config% /p:Platform=%msiplatform% /p:NodeVersion=%NODE_VERSION% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
+msbuild "%~dp0tools\msvs\msi\nodemsi.sln" /m /t:Clean,Build /p:Configuration=%config% /p:Platform=%msiplatform% /p:NodeVersion=%NODE_VERSION% %noetw_msi_arg% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
if errorlevel 1 goto exit
if defined nosign goto run