2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Issue 1419 - gcc 2.95 detection

This commit is contained in:
Thomas Nagy 2014-03-05 21:23:32 +01:00
parent 1afdb9bb73
commit 72334441ce

View File

@ -1133,7 +1133,10 @@ def get_cc_version(conf, cc, gcc=False, icc=False, clang=False):
if isD('__clang__'):
conf.env['CC_VERSION'] = (k['__clang_major__'], k['__clang_minor__'], k['__clang_patchlevel__'])
else:
conf.env['CC_VERSION'] = (k['__GNUC__'], k['__GNUC_MINOR__'], k['__GNUC_PATCHLEVEL__'])
try:
conf.env['CC_VERSION'] = (k['__GNUC__'], k['__GNUC_MINOR__'], k['__GNUC_PATCHLEVEL__'])
except KeyError:
conf.env['CC_VERSION'] = (k['__GNUC__'], k['__GNUC_MINOR__'], 0)
return k
@conf