summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-28 09:48:01 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-28 09:48:01 (GMT)
commit34eb7f55fbdd1566ee117738f3a423354ce1b45c (patch)
treeb239d9b7966f0b18e39aeeed3c1c76e720760f3c /BuildTools/SCons/Tools
parent48ffe88bf768fd762a3bcb52717a9079ec803de5 (diff)
downloadswift-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.py10
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