Skip to content

Commit

Permalink
Merge pull request #82352 from bruvzg/fix_compiler_det
Browse files Browse the repository at this point in the history
Fix compiler detection.
  • Loading branch information
akien-mga committed Sep 26, 2023
2 parents 7e67b49 + 89b568c commit 0a24f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def get_compiler_version(env):
# Not using -dumpversion as some GCC distros only return major, and
# Clang used to return hardcoded 4.2.1: # https://reviews.llvm.org/D56803
try:
version = subprocess.check_output([env.subst(env["CXX"]), "--version"], shell=True).strip().decode("utf-8")
version = subprocess.check_output([env.subst(env["CXX"]), "--version"]).strip().decode("utf-8")
except (subprocess.CalledProcessError, OSError):
print("Couldn't parse CXX environment variable to infer compiler version.")
return ret
Expand Down

0 comments on commit 0a24f1d

Please sign in to comment.