Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
icc --version gives a version of the form a.b.c.d, which python doesn…
Browse files Browse the repository at this point in the history
…'t like (too long)
  • Loading branch information
florianwechsung committed Aug 27, 2020
1 parent 889d800 commit d7de5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def sniff_compiler_version(cc):
compiler = "unknown"

ver = version.LooseVersion("unknown")
if compiler in ["gcc", "icc"]:
if compiler == "gcc":
try:
ver = subprocess.check_output([cc, "-dumpversion"],
stderr=subprocess.DEVNULL).decode("utf-8")
Expand Down

0 comments on commit d7de5bb

Please sign in to comment.