summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index d54e18b26b..97e5534d5d 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -57,11 +57,7 @@ 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'):
- conf.env['CC'] = os.environ.get('CC').strip()
- os.environ['CC'] = conf.env['CC']
+ conf.CHECK_CC_ENV()
conf.check_tool('compiler_cc')