Comment about swapping env and build_env in do_sconscript()

This commit is contained in:
Eryn Wells 2014-07-13 09:22:53 -07:00
parent 9b00e03b2d
commit a0edcab26d

View file

@ -148,6 +148,9 @@ def create_env(name, appends=None):
def do_sconscript(env, build_env, src_dir, out_dir):
sconscript = src_dir.File('SConscript')
print 'Reading {}'.format(sconscript)
# Swapping env and build_env here is a bit wacky. Doing so means that env is
# always the Environment that the SConscript should be building with, while
# build_env is the Environment we're using to put everything together.
env.SConscript(sconscript,
{'env': build_env, 'build_env': env},
variant_dir=out_dir)