Created
January 30, 2012 15:53
-
-
Save ringods/1705100 to your computer and use it in GitHub Desktop.
env.Clone doesn't clone the builders and the emitters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure base_env | |
base_env = Environment() | |
#... | |
# The snippet below enforces having different object instances of the builders | |
# to workaround the shallow copy of env.Clone() | |
other_env = base_env.Clone() | |
del other_env['BUILDERS']['StaticObject'] | |
del other_env['BUILDERS']['SharedObject'] | |
other_env.Tool('gcc') | |
other_env.Tool('g++') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment