I have two files open in Sublime. One is a C file and one is a C++ file.
I have also created to unique build systems for C and C++ in Sublime called C and C++ respectively.
When I build the C++ file using the CTRL+SHIFT+B shortcut with the C++ source file tab active, it builds properly using the appropriate build system. However, when I press CTRL+SHIFT+B with the C source file tab active, it still tries to compile it using the C++ build system (g++) as opposed to the C build system (gcc).
Is there a way to make it so that Sublime selects the build system that should be used based on the currently active tab and the file extension?