scons: Fix clang version identification for OSX
authorMitch Hayenga <Mitch.Hayenga@arm.com>
Fri, 7 Mar 2014 20:56:23 +0000 (15:56 -0500)
committerMitch Hayenga <Mitch.Hayenga@arm.com>
Fri, 7 Mar 2014 20:56:23 +0000 (15:56 -0500)
The version string may have additional trailing information

SConstruct

index 660579657be2a08b64516c4485febabccb71c30a..e9427124f5229d50cae4246bf8c15680ec3d6c06 100755 (executable)
@@ -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: