Since MSVC has a compiler bug that has been blocking effective progress on my work, I would like to switch over to the Intel C++ Compiler.
I do not see an established way to do this in Premake. The closest thing I can find is this example, which sets premake.vstudio.toolset
. I tried this myself, with no effect, so I assume this worked for a past version of Premake's rapidly changing API. What is the current method (Premake 5)?
You would select a compiler using the toolset()
API:
toolset "clang"
There currently is no support for the Intel C++ compiler. You can file a feature request (update: I see you've already done this) or, if you feel like tackling it yourself, you can create a new module to add the support yourself. Have a look at the existing toolset adapters in Premake's source code at src/tools
.