diff options
author | Stephen Sachs <stesachs@amazon.com> | 2023-06-09 15:17:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 09:17:49 -0400 |
commit | d91ec8500f7f8265c023b217bce0c0ca34a81a24 (patch) | |
tree | 0f1229ec9c9c1043603ea85324275b30ad81e666 /SECURITY.md | |
parent | c354cc51d0a35f09a7d67ace71115e56154a160e (diff) | |
download | spack-d91ec8500f7f8265c023b217bce0c0ca34a81a24.tar.gz spack-d91ec8500f7f8265c023b217bce0c0ca34a81a24.tar.bz2 spack-d91ec8500f7f8265c023b217bce0c0ca34a81a24.tar.xz spack-d91ec8500f7f8265c023b217bce0c0ca34a81a24.zip |
[gromacs] Fix intel (classic) libstdc++ path (#37822)
* [gromacs] Fix intel (classic) libstdc++ path
Gromacs's `cmake` run will look for `--gcc-toolchain` (e.g. LLVM, icpx) or
`--gcc-name` (e.g. icpc) in `CMAKE_CXX_FLAGS`. Only if it does not find a good
g++ candidate there it will look for `GMX_GPLUSPLUS_PATH`:
https://github.com/gromacs/gromacs/blob/cb6b311c39fc726a72170c4593b754c8d0a492ac/cmake/FindLibStdCpp.cmake#L97
Spack installed intel compilers already define a g++ for std libs. But in
`icp{c,x}.cfg` instead of the compile line. If we use the pre-defined g++ we not
only have less chance of mixing g++ versions, but also don't need to explicitly
add `gcc` as dependency to `gromacs`.
* Fix format
* Use a variant
As there is no way to check if a file exists at depends_on stage
* Fix format
* New name and fail if variant is used with other compiler
* Line too long.
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions