- Fix the intelc.py Tool module to not throw an exception if the
only installed version is something other than ia32.
+ - Set $CCVERSION when using gcc.
+
From Erling Andersen:
- Fix interpretation of Node.FS objects wrapped in Proxy instances,
import SCons.Util
import cc
+import os
+import re
compilers = ['gcc', 'cc']
env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
else:
env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS -fPIC')
+ # determine compiler version
+ if env['CC']:
+ line = os.popen(env['CC'] + ' --version').readline()
+ match = re.search(r'[0-9]+(\.[0-9]+)+', line)
+ if match:
+ env['CCVERSION'] = match.group(0)
def exists(env):
return env.Detect(compilers)