citrun

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

commit e5450783ec27001f11b5d52ba62d588e58fb7d4d
parent 0f7d354faf121060f279bada15ebcd6ccc8a70e0
Author: Kyle Milz <kyle@windows.krwm.net>
Date:   Sat,  7 Jan 2017 01:23:13 -0800

wrap: pass CITRUN_PATH onto citrun_inst

Diffstat:
MJamfile | 1-
Mwrap.bat | 8+++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Jamfile b/Jamfile @@ -56,7 +56,6 @@ actions ReplaceToken if $(NT) { File citrun_wrap.bat : wrap.bat ; Clean clean : citrun_wrap.bat ; - ReplaceToken citrun_wrap.bat ; } else { Shell citrun_wrap : wrap.sh ; diff --git a/wrap.bat b/wrap.bat @@ -1,7 +1,13 @@ @ECHO off SETLOCAL -SET Path=_CITRUN_COMPILERS_;%Path% + +:: 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