Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request tensorflow#29982 from ashahba/ashahba/gcc-dumpfull…
Browse files Browse the repository at this point in the history
…version

[INTEL MKL] Use the new switch -dumpfullversion to get full gcc version number
  • Loading branch information
bananabowl authored Jun 21, 2019
2 parents 87989f6 + a689e85 commit 3699977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tensorflow/tools/ci_build/linux/mkl/set-build-env.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ def gcc_version_ok(self, min_gcc_major_version, min_gcc_minor_version):
raise ValueError(
"{} does not exist or is not executable.".format(gcc_path))

gcc_output = subprocess.check_output([gcc_path, "-dumpversion"],
stderr=subprocess.STDOUT)
gcc_output = subprocess.check_output(
[gcc_path, "-dumpfullversion", "-dumpversion"],
stderr=subprocess.STDOUT).strip()
# handle python2 vs 3 (bytes vs str type)
if isinstance(gcc_output, bytes):
gcc_output = gcc_output.decode("utf-8")
Expand Down

0 comments on commit 3699977

Please sign in to comment.