Skip to content

Instantly share code, notes, and snippets.

@whoo24
Last active December 15, 2015 22:29
Show Gist options
  • Save whoo24/5333871 to your computer and use it in GitHub Desktop.
Save whoo24/5333871 to your computer and use it in GitHub Desktop.
VC10 C++ Sublime Build Script
{
"cmd":
[
"echo", "================================================================","&",
"echo", "building", "&",
"echo", "================================================================", "&",
"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat", "&",
"cl.exe", "${file}", "/EHsc"
],
"encoding": "cp949",
//"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"file_regex": "^\\w+([0-9]*) : error",
//"env": {"LANG": "ko_KR.UTF-8"},
"shell": true,
"variants":
[
{
"name": "Run",
/*"cmd": [
"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat", "&",
"cl.exe", "${file}", "&",
"echo", "================================================================", "&",
"${file_path}/${file_base_name}.exe"
] */
"cmd": [
"echo", "================================================================","&",
"echo", "building", "&",
"echo", "================================================================", "&",
"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat", "&",
"cl.exe", "${file}", "/EHsc", "&",
"echo", "================================================================", "&",
"echo", "Running", "&",
"echo", "================================================================", "&",
"${file_path}/${file_base_name}.exe"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment