Created
July 10, 2017 23:30
-
-
Save ekzhang/8e0a87c459726c8762b85f3b2104b574 to your computer and use it in GitHub Desktop.
Sublime Text build file for C++11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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