Comment about swapping env and build_env in do_sconscript()
This commit is contained in:
parent
9b00e03b2d
commit
a0edcab26d
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue