Skip to content

Removing Values

starkos edited this page Apr 10, 2021 · 2 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


The remove...() set of functions remove one or more values from a list of configuration values. Every configuration list in the Premake API has a corresponding remove function: flags() has removeflags(), defines() has removedefines(), and so on.

remove... { "values_to_remove" }

Applies To

Project configurations.

Parameters

One or more values to remove. If multiple values are specified, use the Lua table syntax.

Examples

Remove the NoExceptions flag from a previous configuration.

removeflags "NoExceptions"

You can use wildcards in removes. This example will remove both WIN32 and WIN64 from the defines.

defines { "WIN32", "WIN64", "LINUX", "MACOSX" }
removedefines "WIN*"
Clone this wiki locally