winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/buildoptions.md

29 lines
745 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Passes arguments directly to the compiler command line without translation.
```lua
buildoptions { "options" }
```
If a project includes multiple calls to `buildoptions` the lists are concatenated, in the order in which they appear in the script.
### Parameters ###
`options` is a list of compiler flags and options, specific to a particular compiler.
### Applies To ###
Project configurations.
### Availability ###
Premake 4.0 or later.
### Examples ###
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.
```lua
filter { "system:linux", "action:gmake" }
buildoptions { "`wx-config --cxxflags`", "-ansi", "-pedantic" }
```