Skip to content

Instantly share code, notes, and snippets.

@ekzhang
Created July 10, 2017 23:30
Show Gist options
  • Save ekzhang/8e0a87c459726c8762b85f3b2104b574 to your computer and use it in GitHub Desktop.
Save ekzhang/8e0a87c459726c8762b85f3b2104b574 to your computer and use it in GitHub Desktop.
Sublime Text build file for C++11
{
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}", "-std=c++0x", "-O2"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++, source.cpp",
"variants":
[
{
"name": "Run",
"cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' -std=c++0x -O2 && '${file_path}/${file_base_name}'"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment