Skip to content

Instantly share code, notes, and snippets.

@the-redback
Last active March 24, 2019 19:01
Show Gist options
  • Save the-redback/417a7bcdd3aa657bc2e114e7aa014659 to your computer and use it in GitHub Desktop.
Save the-redback/417a7bcdd3aa657bc2e114e7aa014659 to your computer and use it in GitHub Desktop.
{
"shell_cmd": "g++ -Dredback -std=c++11 '${file}' -o '${file_path}/${file_base_name}.o' && time '${file_path}/${file_base_name}.o'",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c++, source.cpp, source.cc, source.cxx",
"variants":
[
{
"name": "Run in Terminal",
"linux": {
//"shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && xterm -e '${file_path}/${file_base_name} && echo && echo Press ENTER to continue && read line && exit'",
"shell_cmd": "g++ -Dredback -std=c++11 '${file}' -o \"${file_path}/${file_base_name}.o\" && gnome-terminal -e 'bash -c \"time ${file_path}/${file_base_name}.o && echo && echo Press ENTER to continue && read line && exit\"'", // for gnome-terminal
// "shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && xterm -e '${file_path}/${file_base_name}; bash'", // for xterm
// "shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && xterm -hold -e ${file_path}/${file_base_name}", // for xterm
// "shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && konsole --hold -e ${file_path}/./${file_base_name}", // for konsole
},
"windows":{
"shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && start cmd /k $file_base_name "
// "shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && start \"$file_base_name\" call $file_base_name"
},
"osx":{
"shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\" && xterm -e '${file_path}/${file_base_name} && echo && echo Press ENTER to continue && read line && exit'",
},
"shell": true,
},
]
}
@the-redback
Copy link
Author

C++14 Ultimate build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment