-
-
Save yibojiang/b9e63d24da692493884ec7ed8df88e30 to your computer and use it in GitHub Desktop.
Sublime C++11 Build System File
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
| //ignore being compatible with C++99 and other warnings | |
| { | |
| "cmd": ["clang++","-std=c++11", "-w", "-stdlib=libc++", "-Weverything", "${file}", "-o", "${file_path}/${file_base_name}"], | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "working_dir": "${file_path}", | |
| "selector": "source.c, source.c++", | |
| "variants": | |
| [ | |
| { | |
| "name": "Run", | |
| "cmd": ["bash", "-c", "clang++ -w -std=c++11 -stdlib=libc++ -Weverything '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"] | |
| } | |
| ] | |
| } |
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
| //with warnings | |
| //compatible with sublime text 2 and 3 | |
| { | |
| "cmd": ["clang++","-std=c++11","-stdlib=libc++", "-Weverything", "${file}", "-o", "${file_path}/${file_base_name}"], | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "working_dir": "${file_path}", | |
| "selector": "source.c, source.c++", | |
| "variants": | |
| [ | |
| { | |
| "name": "Run", | |
| "cmd": ["bash", "-c", "clang++ std=c++11 -stdlib=libc++ -Weverything '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment