build: we don't need varients in samba, so we can optimise a bit more
authorAndrew Tridgell <tridge@samba.org>
Wed, 17 Mar 2010 01:14:11 +0000 (12:14 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:50 +0000 (20:26 +1000)
Thanks to ita for suggesting this

buildtools/wafsamba/samba_includes.py

index 3331713f80b29cefd7388d1469664ace8270e365..54d43a3b9472bd5cea63d01c946653db108ce62f 100644 (file)
@@ -72,5 +72,17 @@ def apply_obj_vars_cc(self):
     for i in env['CPPPATH']:
         app('_CCINCFLAGS', cpppath_st % i)
 
+import Node, Environment
+
+def vari(self):
+       return "default"
+Environment.Environment.variant = vari
+
+def variant(self, env):
+       if not env: return 0
+       elif self.id & 3 == Node.FILE: return 0
+       else: return "default"
+Node.Node.variant = variant
+