summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2019-09-30 14:02:32 -0400
committerPeter Scheibel <scheibel1@llnl.gov>2019-09-30 11:02:32 -0700
commit7bcb306d4a5fc74fff63ea73369211e95270b911 (patch)
tree8ead385c89660f6952076173f9d64b3eca613c20 /lib
parent139eaa13064c2f8db824abe9c29f26296408ea86 (diff)
downloadspack-7bcb306d4a5fc74fff63ea73369211e95270b911.tar.gz
spack-7bcb306d4a5fc74fff63ea73369211e95270b911.tar.bz2
spack-7bcb306d4a5fc74fff63ea73369211e95270b911.tar.xz
spack-7bcb306d4a5fc74fff63ea73369211e95270b911.zip
Fix GCC environment variables for external installations (#12454)
Unlike the compiler binary name search logic, the `setup_environment` in GCC's package assumes the compiler names are *exactly* `gcc`, `g++`, etc. In many external installations (Homebrew, Macports) the installation includes only *suffixed* versions such as `gcc-9`. This patch uses the GCC compiler search suffixes to actually locate the correct filenames for the installed compilers, allowing the Spack-generated module file to have useful definitions of CC, CXX, etc. It also allows for the possibility that the user's external installation of GCC is compiled without Fortran support, in which case the `FC` environment variables are not defined.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions