Skip to content

direct_assignment

Samantha Marshall edited this page Jul 11, 2016 · 3 revisions

Direct Assignment

The language leverages the for keyword used as part of build setting variable substitution in addition with a special keyword (*) that denotes direct assignment of a build setting variable.

Example:

setting OTHER_CFLAGS {
	for * {
		-Wall,
		-Werror
	}
} 

This code will produce the following assignment in the generated xcconfig file:

OTHER_CFLAGS = -Wall -Werror

Note: When listing values to assign, the pyconfig format does NOT support trailing commas on the final list items and may pass linting validation but not generate correctly.

Clone this wiki locally