Skip to content

Instantly share code, notes, and snippets.

@eliellis
Created May 26, 2013 18:41
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 eliellis/5653659 to your computer and use it in GitHub Desktop.
Save eliellis/5653659 to your computer and use it in GitHub Desktop.
Sublime build settings for .c files
{
"cmd": ["clang", "${file}", "-o", "${file_path}/${file_base_name}.o"],
"selector": "source.c",
"variants":
[
{
"name": "Run",
"cmd": ["bash", "-c", "clang '${file}' -o '${file_path}/${file_base_name}.o' && '${file_path}/${file_base_name}.o'"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment