This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/buildoptions.md
starkos e9525eec34 Deprecate configuration()
`configuration()` will not be supported in Premake6. Marking it deprecated now so everyone has a chance to phase it out. Closes #1708.
2021-09-17 06:47:03 -04:00

29 lines
745 B
Markdown

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