« Prev 4.3.1 Environments | Table of Contents | Next » 4.3.3 Builders |
Construction variables are values assigned to keys within an Environment. Construction variables are used by Builders to produce output files. See Default Construction Variables for a reference of all built-in construction variables.
Example:
env do |env| env["CCFLAGS"] += %w[-O2 -Wall] env["LIBS"] += %w[m] end
This example modifies the CCFLAGS
construction variable to add -O2
and
-Wall
to the compilation commands used for C and C++ source files.
It also instructs the linker to link against the m
library.
« Prev 4.3.1 Environments | Table of Contents | Next » 4.3.3 Builders |