Find compatibility versions of GCC (#2099)

This commit is contained in:
Adam J. Stewart 2016-10-25 13:07:49 -05:00 committed by Todd Gamblin
parent 08300ccffb
commit a250792202

View file

@ -41,8 +41,9 @@ class Gcc(Compiler):
fc_names = ['gfortran'] fc_names = ['gfortran']
# MacPorts builds gcc versions with prefixes and -mp-X.Y suffixes. # MacPorts builds gcc versions with prefixes and -mp-X.Y suffixes.
# Homebrew and Linuxes may build gcc with -X, -X.Y suffixes # Homebrew and Linuxbrew may build gcc with -X, -X.Y suffixes.
suffixes = [r'-mp-\d\.\d', r'-\d\.\d', r'-\d'] # Old compatibility versions may contain XY suffixes.
suffixes = [r'-mp-\d\.\d', r'-\d\.\d', r'-\d', r'\d\d']
# Named wrapper links within spack.build_env_path # Named wrapper links within spack.build_env_path
link_paths = {'cc': 'gcc/gcc', link_paths = {'cc': 'gcc/gcc',