From e6a47a8dea252c7ced95141f24de68f4d6a21c41 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Mar 2010 12:14:11 +1100 Subject: build: we don't need varients in samba, so we can optimise a bit more Thanks to ita for suggesting this --- buildtools/wafsamba/samba_includes.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/buildtools/wafsamba/samba_includes.py b/buildtools/wafsamba/samba_includes.py index 3331713f80..54d43a3b94 100644 --- 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 + -- cgit