Skip to content

Instantly share code, notes, and snippets.

@JDevlieghere
Created October 7, 2013 15:10
Show Gist options
  • Save JDevlieghere/6869578 to your computer and use it in GitHub Desktop.
Save JDevlieghere/6869578 to your computer and use it in GitHub Desktop.
Build file for compiling C program in Sublime 3 with GCC (Mac) or LCC (Windows)
{
"cmd" : ["C:\\lcc\\bin\\lcc.exe", "$file_name", "-o", "${file_base_name}.exe"],
"selector" : "source.c",
"shell":true,
"working_dir" : "$file_path"
}
{
"cmd" : ["gcc", "$file_name", "-o", "${file_base_name}"],
"selector" : "source.c",
"shell":true,
"working_dir" : "$file_path"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment