I have a custom build system in my project that I modeled after the Sublime Text 3 Make build system:
{
"name": "CustomMake",
"working_dir": "${folder}/src",
"file_regex": "^(..^:\n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"shell": true,
"shell_cmd": "make -j4",
"syntax": "Packages/Makefile/Make.build-language"
}
Unfortunately, the make is recursive, so when there is an error in a subdirectory, the error regex thinks the file is in the directory where I called make. The command output looks like:
make all-recursive
Making all in libmrc
Making all in include
make[3]: Nothing to be done for `all'.
Making all in src
make[3]: Nothing to be done for `all'.
Making all in tests
CC test_mrc_f3.o
test_mrc_f3.c:11:2: error: #error
make[3]: *** [test_mrc_f3.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Double clicking on the error line brings me to a new file src/test_mrc_f3.c, when the real file is in src/libmrc/tests/test_mrc_f3.c. I can’t come up with a way to use file_regex and line_regex to make this work. Is there any solution to this?