Skip to content

Commit

Permalink
normalize_triplet.py: Properly map libgfortran versions for GCC 10 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat authored Apr 30, 2020
1 parent 207fc3a commit 70d27c2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions contrib/normalize_triplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ def p(x):
if libgfortran_version == "blank_libgfortran":
if len(sys.argv) >= 3:
libgfortran_version = {
"4": "libgfortran3",
"5": "libgfortran3",
"6": "libgfortran3",
"7": "libgfortran4",
"8": "libgfortran5",
"9": "libgfortran5",
}[list(filter(lambda x: re.match("\d+\.\d+(\.\d+)?", x), sys.argv[2].split()))[-1][0]]
"4": "libgfortran3",
"5": "libgfortran3",
"6": "libgfortran3",
"7": "libgfortran4",
"8": "libgfortran5",
"9": "libgfortran5",
"10": "libgfortran5",
}[list(filter(lambda x: re.match("\d+\.\d+(\.\d+)?", x), sys.argv[2].split()))[-1].split('.')[0]]

if cxx_abi == "blank_cxx_abi":
if len(sys.argv) == 4:
Expand Down

0 comments on commit 70d27c2

Please sign in to comment.