JCSDA / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
0 stars 14 forks source link

release/1.8.0: bug fix for compiling g2@3.5.1 with gfortran < 10 #477

Closed climbfuji closed 2 months ago

climbfuji commented 2 months ago

For release/1.8.0: This PR is based on https://github.com/JCSDA/spack/pull/476 (credits @RatkoVasic-NOAA), but narrowed down to one specific version of g2 and for gfortran earlier than version 10.

Corresponding spack-stack PR: https://github.com/JCSDA/spack-stack/pull/1287

climbfuji commented 2 months ago

Cool. Is the idea of not using if self.spec.satisfies("%gcc@:...") to handle the case where we're using gfortran with clang or something like that?

Exactly. macOS uses apple-clang + gfortran, for example.