Created
April 11, 2016 13:46
-
-
Save ammarfrahm/3e8136964bfa71d7096a379e210735d7 to your computer and use it in GitHub Desktop.
clang sublime build with bat file helper
This file contains hidden or 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
@ECHO OFF | |
cd %2 | |
gcc %1.c -o %1.exe | |
IF %ERRORLEVEL% == 1 GOTO BUILDERR | |
%1.exe | |
:BUILDERR | |
ECHO. | |
PAUSE | |
EXIT |
This file contains hidden or 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
@ECHO OFF | |
cd %2 | |
gcc *.c -o %1.exe | |
IF %ERRORLEVEL% == 1 GOTO BUILDERR | |
%1.exe | |
:BUILDERR | |
ECHO. | |
PAUSE | |
EXIT |
This file contains hidden or 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
Show hidden characters
{ | |
"cmd": ["start", "build-c.bat", "$file_base_name", "$file_path"], | |
"shell": true, | |
"working_dir": "$file_path", | |
"variants": | |
[ | |
{ | |
"name": "Multiple File", | |
"cmd": ["start", "build-multi-c.bat", "$file_base_name", "$file_path"], | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment