-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapper helper script for windows apps to be able to log the compile/…
…etc calls, also supports no arg required by symlinking and use the batch file call name
- Loading branch information
1 parent
5a402d1
commit 246ca45
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@ECHO OFF | ||
set CMD=%~n1% | ||
set GNU_BUILD_WRAPPER_DEBUG=1 | ||
IF "%~n0%"=="windows_command_wrapper" GOTO notsym | ||
|
||
set CMD=%~n0%.exe | ||
ECHO "ROBO: %~n0% " 1>&2 | ||
|
||
IF "%GNU_BUILD_WRAPPER_DEBUG%"=="1" ECHO "GNU %CMD% CMD: %CMD% %*" 1>&2 | ||
IF "%CMD%" == "link.exe" set CMD="%VCToolsInstallDir%bin/HostX64/x64/link.exe" | ||
|
||
if not defined GNU_BUILD_CMD_FILE GOTO endif1 | ||
>>"%GNU_BUILD_CMD_FILE%" echo %CMD% %* | ||
:endif1 | ||
%CMD% %* | ||
Exit /B %ERRORLEVEL% | ||
goto:eof | ||
|
||
:notsym | ||
IF "%GNU_BUILD_WRAPPER_DEBUG%"=="1" ECHO "GNU2 %CMD% CMD: %*" 1>&2 | ||
|
||
if not defined GNU_BUILD_CMD_FILE GOTO endif2 | ||
>>"%GNU_BUILD_CMD_FILE%" echo %* | ||
:endif2 | ||
%* | ||
rem Exit 1 | ||
Exit /B %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../windows_command_wrapper.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../windows_command_wrapper.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../windows_command_wrapper.bat |