Skip to content

Instantly share code, notes, and snippets.

@amirbehzad
Last active April 12, 2016 06:38
Show Gist options
  • Save amirbehzad/040da85832da6ec4e735b6d4fd0190c9 to your computer and use it in GitHub Desktop.
Save amirbehzad/040da85832da6ec4e735b6d4fd0190c9 to your computer and use it in GitHub Desktop.
Build-system for Sublime-Text 2 to compile and run simple C programs
{
// Tools -> Build Systems -> New Build Systems
"cmd" : ["gcc -std=c99 $file_name -o ${file_base_name} && ./${file_base_name} -lm -Wall"],
"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