Here is my SCons Sublime Text 2 build script:
- Code: Select all
{
"cmd": ["scons", "-j2", "debug=1"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path:${folder:${file_path}}}",
"variants":
[
{
"name": "Clean",
"cmd": ["scons", "-c"]
}
]
}
place this in ~/.config/sublime-text-2/Packages/User/SCons.sublime-build
Adds a "SCons" option to the build system selection
UPDATE: Added file_regex to parse the gcc error output