%scons; %builders-mod; %functions-mod; %tools-mod; %variables-mod; ]>
Merging Options While Creating Environment: the <parameter>parse_flags</parameter> Parameter It is also possible to merge &consvar; values from arguments given to the &f-link-Environment; call itself. If the parse_flags keyword argument is given, its value is distributed to &consvars; in the new environment in the same way as described for the &MergeFlags; method. This also works when calling &f-link-env-Clone;, as well as in overrides to builder methods (see ). env = Environment(parse_flags="-I/opt/include -L/opt/lib -lfoo") for k in ('CPPPATH', 'LIBPATH', 'LIBS'): print("%s:" % k, env.get(k)) env.Program("f1.c") int main() { return 0; } scons -Q