summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_pidl.py
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-12-10 14:37:00 +0300
committerMatthieu Patou <mat@samba.org>2010-12-10 13:27:22 +0100
commitd1bfa333f58010ec727e4edb952edb015ba0c31c (patch)
tree8862cce4b46e0cbed8f6332c9f8839490ac4b545 /buildtools/wafsamba/samba_pidl.py
parentb285d0304a58fbacb9fcaa8359271bcd717c16f7 (diff)
downloadsamba-d1bfa333f58010ec727e4edb952edb015ba0c31c.tar.gz
samba-d1bfa333f58010ec727e4edb952edb015ba0c31c.tar.bz2
samba-d1bfa333f58010ec727e4edb952edb015ba0c31c.zip
build: reset cpp on host with xlr_c and let pidl use $CC -E
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Dec 10 13:27:22 CET 2010 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba/samba_pidl.py')
-rw-r--r--buildtools/wafsamba/samba_pidl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py
index d0af9f27b4..79fc5b0a66 100644
--- a/buildtools/wafsamba/samba_pidl.py
+++ b/buildtools/wafsamba/samba_pidl.py
@@ -66,6 +66,10 @@ def SAMBA_PIDL(bld, pname, source,
else:
cpp = "CPP=%s" % bld.CONFIG_GET("CPP")
+ if cpp == "xlr_c":
+ cpp = ""
+
+
if bld.CONFIG_SET("CC"):
if isinstance(bld.CONFIG_GET("CC"), list):
cc = "CC=%s" % bld.CONFIG_GET("CC")[0]