summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-03-22 13:47:46 +1100
committerStefan Metzmacher <metze@samba.org>2013-03-25 10:25:36 +0100
commitafe9343880ee27cf9fe937c6379c469435ef20d6 (patch)
tree3e99fc8dac53a67f7346af3c9ce5b6e332cdbe9b
parent7dc6dfd90c5182ed85042b22d4864d3e9b007531 (diff)
downloadsamba-afe9343880ee27cf9fe937c6379c469435ef20d6.tar.gz
samba-afe9343880ee27cf9fe937c6379c469435ef20d6.tar.bz2
samba-afe9343880ee27cf9fe937c6379c469435ef20d6.zip
build: Do not pass CPP="" to pidl, skip the env variable entirely
This will cause pidl to use $CC -E instead. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--buildtools/wafsamba/samba_pidl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py
index 97c1deb774..2393c72c69 100644
--- a/buildtools/wafsamba/samba_pidl.py
+++ b/buildtools/wafsamba/samba_pidl.py
@@ -59,7 +59,7 @@ def SAMBA_PIDL(bld, pname, source,
# the cd .. is needed because pidl currently is sensitive to the directory it is run in
cpp = ""
cc = ""
- if bld.CONFIG_SET("CPP"):
+ if bld.CONFIG_SET("CPP") and bld.CONFIG_GET("CPP") != "":
if isinstance(bld.CONFIG_GET("CPP"), list):
cpp = 'CPP="%s"' % " ".join(bld.CONFIG_GET("CPP"))
else: