spack/lib/spack/env
Todd Gamblin 5cc07522ab cc: parse RPATHs when in ld mode
In the pure `ld` case, we weren't actually parsing `RPATH` arguments separately as we
do for `ccld`. Fix this by adding *another* nested case statement for raw `RPATH`
parsing.

There are now 3 places where we deal with `-rpath` and friends, but I don't see a great
way to unify them, as `-Wl,`, `-Xlinker`, and raw `-rpath` arguments are all ever so
slightly different.

Also, this Fixes ordering of assertions to make `pytest` diffs more intelligible.
The meaning of `+` and `-` in diffs changed in `pytest` 6.0 and the "preferred" order
for assertions became `assert actual == expected` instead of the other way around.

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2024-11-04 19:52:08 +01:00
..
aocc
arm
case-insensitive
cce
clang
fj
gcc
intel
nag
nvhpc
oneapi
pgi
rocmcc
xl
xl_r
c89
c99
c++
cc cc: parse RPATHs when in ld mode 2024-11-04 19:52:08 +01:00
cpp
f77
f90
f95
fc
ftn
ld
ld.gold
ld.lld