-
-
Notifications
You must be signed in to change notification settings - Fork 616
buildoptions
starkos edited this page Apr 10, 2021
·
7 revisions
This wiki is no longer being maintained.
Passes arguments directly to the compiler command line without translation.
buildoptions { "options" }
If a project includes multiple calls to buildoptions the lists are concatenated, in the order in which they appear in the script.
options
is a list of compiler flags and options, specific to a particular compiler.
Project configurations.
Premake 4.0 or later.
Use pkg-config
style configuration when building on Linux with GCC. Build options are always compiler specific and should be targeted to a particular toolset.
configuration { "linux", "gmake" }
buildoptions { "`wx-config --cxxflags`", "-ansi", "-pedantic" }