This builds single C++ files in Sublime Text, handy for testing small things.
- OSX (Assuming xcode installed)
- Linux (Should work if g++ is installed)
- Windows (Need CL working)
Thanks to adnansky for Linux Test and Shell update.
{ | |
"cmd": ["g++", "$file", "-o", "$file_base_name", "-I/usr/local/include"], | |
"selector": "source.c++", | |
"windows": | |
{ | |
"cmd": ["cl", "/Fo${file_path}", "/O2", "$file"] | |
} | |
} |
{ | |
"cmd": ["g++ -Wall ${file} -o ${file_base_name} && ./${file_base_name}"], "working_dir": "${file_path}", | |
"selector": "source.c++", | |
"shell": true, | |
"windows": | |
{ | |
"cmd": ["cl", "/Fo${file_path}", "/O2", "$file"], | |
"selector": "source.c++", | |
"shell": true | |
} | |
} | |