We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19bb187 commit eb30f64Copy full SHA for eb30f64
methods.py
@@ -712,8 +712,9 @@ def get_compiler_version(env):
712
# Not using -dumpversion as some GCC distros only return major, and
713
# Clang used to return hardcoded 4.2.1: # https://reviews.llvm.org/D56803
714
try:
715
+ cxx_path = env["CXX"].replace("\\", "/") # win32
716
version = subprocess.check_output(
- shlex.split(env.subst(env["CXX"])) + ["--version"], shell=(os.name == "nt"), encoding="utf-8"
717
+ shlex.split(env.subst(cxx_path)) + ["--version"], shell=(os.name == "nt"), encoding="utf-8"
718
).strip()
719
except (subprocess.CalledProcessError, OSError):
720
print_warning("Couldn't parse CXX environment variable to infer compiler version.")
0 commit comments