spack/lib/spack
Harmen Stoppels 926dca9e5f
Specify GCC prefix in LLVM-based compilers (#33146)
* spack.compiler.Compiler: introduce prefix property

We currently don't really have something that gives the GCC install
path, which is used by many LLVM-based compilers (llvm, llvm-amdgpu,
nvhpc, ...) to fix the GCC toolchain once and for all.

This `prefix` property is dynamic in the sense that it queries the
compiler itself. This is necessary because it's not easy to deduce the
install path from the `cc` property (might be a symlink, might be a
filename like `gcc` which works by having the compiler load a module
that sets the PATH variable, might be a generic compiler wrapper based
on environment variables like on cray...).

With this property introduced, we can clean up some recipes that have
the logic repeated for GCC.

* intel-oneapi-compilers: set --gcc-sysroot to %gcc prefix
2022-10-11 17:45:51 -06:00
..
docs Docs: Getting Started Dependencies (#32480) 2022-10-10 23:25:37 +00:00
env Revert "strip -Werror: all specific or none (#30284)" (#30878) 2022-05-26 14:17:01 -07:00
external Use threading.TIMEOUT_MAX when available (#32399) 2022-08-26 17:37:56 -06:00
llnl shell prompt: enclose control sequence in brackets (#33079) 2022-10-10 07:29:58 -06:00
spack Specify GCC prefix in LLVM-based compilers (#33146) 2022-10-11 17:45:51 -06:00