From 6e550ac4c7f2c2a2a14ed0816e439824e8c898aa Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 19 Mar 2010 10:58:58 +1100 Subject: build: trim whitespace from CC options --- lib/replace/wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/replace/wscript') diff --git a/lib/replace/wscript b/lib/replace/wscript index 5fd7027141..e189ab31df 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -48,6 +48,11 @@ def configure(conf): # load our local waf extensions conf.check_tool('wafsamba', tooldir=conf.srcdir + "/buildtools/wafsamba") + # trim whitespaces from 'CC'. + # The build farm sometimes puts a space at the start + if os.environ.get('CC'): + os.environ['CC'] = os.environ.get('CC').strip() + conf.check_tool('compiler_cc') # gccdeps can be useful for debugging recursion in #include lines conf.check_tool('gccdeps', tooldir=conf.srcdir + "/buildtools/wafsamba") -- cgit