Skip to content

Commit

Permalink
Merge pull request #28947 from cms-sw/smuzaffar-patch-3
Browse files Browse the repository at this point in the history
[URGENT] fix for getting clang version which is breaking 11.1.0.pre3 release
  • Loading branch information
cmsbuild authored Feb 13, 2020
2 parents 697a1dd + 81ae544 commit 5d6b994
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def get_clang_version():
return clang_version
command = "clang --version | grep 'clang version' | sed 's/clang version//'"
logging.debug("Running: {0}".format(command))
(clang_version_major, clang_version_minor, clang_version_patchlevel) = subprocess.check_output(command, shell=True).splitlines()[0].decode('ascii').strip().split('.', 3)
(clang_version_major, clang_version_minor, clang_version_patchlevel) = subprocess.check_output(command, shell=True).splitlines()[0].decode('ascii').strip().split(" ")[0].split('.', 3)
clang_version = (int(clang_version_major), int(clang_version_minor), int(clang_version_patchlevel))
logging.debug("Detected Clang version: {0}".format(clang_version))
return clang_version
Expand Down

0 comments on commit 5d6b994

Please sign in to comment.