Skip to content

Instantly share code, notes, and snippets.

@sooop
Last active December 14, 2015 20:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sooop/5143061 to your computer and use it in GitHub Desktop.
Save sooop/5143061 to your computer and use it in GitHub Desktop.
ANSI-C Build System for win32
{
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c",
"variants":
[
{
"name": "Run",
"cmd": ["${file_path}/${file_base_name}"]
},
{
"name": "Build for Debug",
"cmd": ["gcc", "${file}", "-g", "-o", "${file_path}/${file_base_name}"]
},
{
"name": "Build(Clang)",
"cmd": ["clang", "${file}", "-o", "${file_path}/${file_base_name}", "-I", "C:/GNUStep/include"]
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment