Skip to content

Instantly share code, notes, and snippets.

@Carlovan
Created November 2, 2016 10:42
Show Gist options
  • Save Carlovan/90dd30eaf6ff17967e2ae53d7d5b6690 to your computer and use it in GitHub Desktop.
Save Carlovan/90dd30eaf6ff17967e2ae53d7d5b6690 to your computer and use it in GitHub Desktop.
C++11.Build System Windows
{
"cmd": ["g++", "-std=c++11", "-D_GLIBCXX_DEBUG", "${file}", "-o", "${file_base_name}.exe"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++, source.cpp",
"variants":
[
{
"name": "Run",
"cmd":["cmd", "/K", "g++", "-std=c++11", "-D_GLIBCXX_DEBUG", "${file}", "-o", "${file_base_name}.exe", "&&", "start", "", "cmd", "/c", "${file_base_name}.exe && pause"]
},
{
"name": "Run input.txt",
"cmd":["cmd", "/K", "g++", "-std=c++11", "-D_GLIBCXX_DEBUG", "${file}", "-o", "${file_base_name}.exe", "&&", "${file_base_name}.exe", "<", "input.txt"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment