citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 4d6f250ca77ee652c71fa5e80f057c67d87b8f50
parent 5a1fddfe768b2960d72bb8c8214774c9bd897054
Author: Kyle Milz <kyle@windows.krwm.net>
Date:   Fri, 13 Jan 2017 01:36:15 -0800

configure: generate citrun_wrap on windows too

Diffstat:
Mconfigure.bat | 11+++++++++++
Dwrap.bat | 13-------------
2 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/configure.bat b/configure.bat @@ -42,6 +42,17 @@ IF %ERRORLEVEL% NEQ 0 ( EXIT /B 1 ) +:: Write prefix.h +> prefix.h ECHO static const char *prefix = R"(%CD%)"; + +:: Write citrun_wrap +> citrun_wrap.bat ECHO @ECHO off +>> citrun_wrap.bat ECHO SETLOCAL +>> citrun_wrap.bat ECHO SET Path=%CD%\compilers;%%PATH%% +>> citrun_wrap.bat ECHO CALL %%* +>> citrun_wrap.bat ECHO EXIT /B %%ERRORLEVEL%% +>> citrun_wrap.bat ECHO ENDLOCAL + :: Silence warning about exceptions being disabled from xlocale. > Jamrules ECHO C++FLAGS = /D_HAS_EXCEPTIONS=0 ; >> Jamrules ECHO. diff --git a/wrap.bat b/wrap.bat @@ -1,13 +0,0 @@ -@ECHO off - -SETLOCAL - -:: CITRUN_PATH is used in citrun_inst to find the runtime library and compilers. -:: Hook the PATH with our directory that conveniently has a cl.exe in it. -SET CITRUN_PATH=%~dp0 -SET Path=%CITRUN_PATH%compilers;%Path% - -CALL %* -EXIT /B %ERRORLEVEL% - -ENDLOCAL