Skip to content

Instantly share code, notes, and snippets.

@Ruzzz
Created February 17, 2014 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ruzzz/9050918 to your computer and use it in GitHub Desktop.
Save Ruzzz/9050918 to your computer and use it in GitHub Desktop.
{
"env" :
{
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\" /D_USING_V110_SDK71_ /I \"%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Include\"",
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE,5.01 /LIBPATH:\"%ProgramFiles%\\Microsoft SDKs\\Windows\\7.1A\\Lib\""
},
"path" : "%PATH%;%ProgramFiles%\\Microsoft SDKs\\Windows\\7.1A\\Bin;%ProgramFiles%\\microsoft visual studio 12.0\\vc",
"shell_cmd": "vcvarsall.bat x86 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}.exe\" && del *.obj",
"file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]",
"selector": "source.c, source.c++, source.cpp",
"working_dir": "${file_path}",
"variants":
[
{
"name": "Run",
"shell_cmd": "\"${file_path}\\\\${file_base_name}.exe\""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment