fen
fen

Reputation: 10115

How to set option for compiler in premake4?

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...

Upvotes: 0

Views: 1540

Answers (1)

J. Perkins
J. Perkins

Reputation: 4276

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" }

Upvotes: 3

Related Questions