git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
32bf9bc
)
build: we don't need varients in samba, so we can optimise a bit more
author
Andrew Tridgell
<tridge@samba.org>
Wed, 17 Mar 2010 01:14:11 +0000
(12:14 +1100)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_includes.py
b/buildtools/wafsamba/samba_includes.py
index 3331713f80b29cefd7388d1469664ace8270e365..54d43a3b9472bd5cea63d01c946653db108ce62f 100644
(file)
--- a/
buildtools/wafsamba/samba_includes.py
+++ b/
buildtools/wafsamba/samba_includes.py
@@
-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
+