Skip to content

Instantly share code, notes, and snippets.

@Carlovan
Created November 2, 2016 10:16
Show Gist options
  • Save Carlovan/df103102fcf4e99e80a54a0e55c18958 to your computer and use it in GitHub Desktop.
Save Carlovan/df103102fcf4e99e80a54a0e55c18958 to your computer and use it in GitHub Desktop.
C++11 Build System Linux
{
"shell_cmd": "g++ -std=c++11 -D_GLIBCXX_DEBUG \"${file}\" -o \"${file_path}/${file_base_name}\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++, source.cpp",
"variants":
[
{
"name": "Run",
"shell_cmd": "g++ -std=c++11 -D_GLIBCXX_DEBUG \"${file}\" -o \"${file_path}/${file_base_name}\" && xfce4-terminal -e \"bash -c \\\"${file_path}/${file_base_name} && read -n1 -r\\\"\""
},
{
"name": "Run input.txt",
"shell_cmd": "g++ -std=c++11 -D_GLIBCXX_DEBUG \"${file}\" -o \"${file_path}/${file_base_name}\" && xfce4-terminal -e \"bash -c \\\"${file_path}/${file_base_name} < input.txt && read -n1 -r\\\"\""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment