Skip to content

Instantly share code, notes, and snippets.

@ducphanduyagentp
Created May 17, 2014 16:32
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 ducphanduyagentp/9695723c5bde61ddae27 to your computer and use it in GitHub Desktop.
Save ducphanduyagentp/9695723c5bde61ddae27 to your computer and use it in GitHub Desktop.
{
"path": "C:\\MinGW\\bin\\",
"working_dir": "${file_path}",
"cmd": ["g++", "-c", "${file}", "-o", "${file_path}/${file_base_name}.o"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.c, source.c++, source.cpp",
"variants":
[
{
"name": "Link",
"path": "C:\\MinGW\\bin",
"working_dir": "${file_path}",
"cmd" : ["g++", "${file_base_name}.o", "-static", "-o", "${file_base_name}.exe"]
},
{
"name": "Run",
"working_dir": "${file_path}",
"cmd": ["cmd", "${file_base_name}.exe"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment