Linux
{
"encoding": "utf-8",
"working_dir": "$file_path",
"variants":
[
{
"name": "Run-With-O2",
"shell_cmd": "g++ -O2 -Wall -std=c++14 \"$file\" -o \"$file_base_name\" && xterm -e bash -c \"${file_path}/${file_base_name};exec bash\" ",
}
]
}Linux2
{
"variants": [
{
"name": "Run-With-O2",
"shell_cmd": "g++ -O2 -Wall -std=c++14 \"$file\" -o \"$file_base_name\" && gnome-terminal -- bash -c \"${file_path}/${file_base_name};exec bash\" ",
}
]
}Windows
{
"encoding": "utf-8",
"working_dir": "$file_path",
"variants":
[
{
"name": "RunInCmd",
"shell_cmd": "g++ -O2 -Wall -std=c++14 -Wl,-stack=1000000000 \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
}
]
}