Question

How can I set option that is available for particular compiler in premake4?

For instance only in Visual Studio set "Whole Program Optimization"? This option is not available in GCC...

Was it helpful?

Solution

If you are using the development version of Premake, you can set the link-time optimization flag:

flags { "LinkTimeOptimization" }

If you are using the stable version, you can get the same effect by setting the command line flag explicitly for Visual Studio:

configuration "vs*"
    buildoptions { "/GL" }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top