For anyone interested, steps to add native support for the INTEL (or any other) compiler:
- Copy compilerMSVC.(cpp|h) to compilerINTEL.(cpp|h). (in plugins/compilergcc).
- Adjust contents of compilerINTEL.cpp to support the new compiler.
- Add #include "compilerINTEL.h" in compiler.gcc
- In compilergcc's constructor, where it says "// register built-in compilers", add "CompilerFactory::RegisterCompiler(new CompilerINTEL);"
- Build.
In this case it would seem to be a bit more complicated as Intel C++ seems to accept different command-line parameters on Windows and Linux.
If it doesn't also have a "common" set of parameters that'll work on both (and represents the entire range of possible options the other ones do), supporting it on both platforms might be a bit more work than your average compiler. You might have to either use a lot of
#ifdefs in the file, or even use separate files for the Windows and Linux version.
The last one may be preferable if
remote developement support is planned as you could then have both versions on your system at the same time, one for your local OS and one for the remote OS.
Of course, I haven't really checked if the supported parameter sets are actually different or if they just swap out '/' (Windows) and '-' (Linux) prefixes when on the other platform. I'm not sure if it's even possible (are there any MSVC command-line parameters that mean something else to GCC?), but if the latter is the case a simple checkbox in the options would probably suffice. Should default to the setting for platform you're currently running, of course.