summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Hayenga <Mitch.Hayenga@arm.com>2014-03-07 15:56:23 -0500
committerMitch Hayenga <Mitch.Hayenga@arm.com>2014-03-07 15:56:23 -0500
commit7084e31341f99983a2f3f218fa2ec7fa624ad249 (patch)
tree76cb2a4e039f4f152516d7af7abffc12ae547aff
parent45677ffa97e44816881b9ec636d11798eb100fcb (diff)
downloadgem5-7084e31341f99983a2f3f218fa2ec7fa624ad249.tar.xz
scons: Fix clang version identification for OSX
The version string may have additional trailing information
-rwxr-xr-xSConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 660579657..e9427124f 100755
--- a/SConstruct
+++ b/SConstruct
@@ -608,7 +608,7 @@ elif main['CLANG']:
# support similar features as gcc 4.4. See
# http://clang.llvm.org/cxx_status.html for details
clang_version_re = re.compile(".* version (\d+\.\d+)")
- clang_version_match = clang_version_re.match(CXX_version)
+ clang_version_match = clang_version_re.search(CXX_version)
if (clang_version_match):
clang_version = clang_version_match.groups()[0]
if compareVersions(clang_version, "2.9") < 0: