diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-11-28 09:48:01 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-11-28 09:48:01 (GMT) |
commit | 34eb7f55fbdd1566ee117738f3a423354ce1b45c (patch) | |
tree | b239d9b7966f0b18e39aeeed3c1c76e720760f3c /BuildTools/SCons/Tools | |
parent | 48ffe88bf768fd762a3bcb52717a9079ec803de5 (diff) | |
download | swift-34eb7f55fbdd1566ee117738f3a423354ce1b45c.zip swift-34eb7f55fbdd1566ee117738f3a423354ce1b45c.tar.bz2 |
Replace slightly-too-magic MergeFlags by our own UseFlags.
Diffstat (limited to 'BuildTools/SCons/Tools')
-rw-r--r-- | BuildTools/SCons/Tools/Flags.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/BuildTools/SCons/Tools/Flags.py b/BuildTools/SCons/Tools/Flags.py new file mode 100644 index 0000000..13fbb32 --- /dev/null +++ b/BuildTools/SCons/Tools/Flags.py @@ -0,0 +1,10 @@ +import SCons.Util + +def generate(env) : + def useFlags(env, flags) : + for flag in flags : + env[flag] = env.get(flag, []) + flags[flag] + env.AddMethod(useFlags, "UseFlags") + +def exists(env) : + return True |