On 12/10/15, 4:41 PM, "
sp...@googlegroups.com on behalf of François
>
https://github.com/kiwifb/spack/commit/5f77af6a8f8b328f066383e0786dc5f2373
>061b8
>is actually more useful as it has only the bits I added and show
>the other files that have to be touched for the compiler to be usable.
Ah nice. A couple comments:
The parts in lib/spack/env/cc are probably not necessary. Many of the
links in lib/spack/env are vestigial -- they are intended to catch
compiler calls for builds that somehow don't properly use the spack
wrappers (cc, c++, f77, f90). If your build respects the CC, CXX, FC, and
F77 env vars, it will use the right wrappers automatically. If it uses
Makefiles and doesn't patch them, it probably should patch them.
I think I will eventually remove the extra links and only leave the main
ones in lib/spack/env. I think I may also rename them to spack-cc,
spack-c++, etc., because that ends up being much clearer in the build
logs. It would also make it easy to analyze a build log and see if there
are spots where the wrapper compiler is not being used properly. We've
had users here get confused that the build logs say "cc" and they wonder
exactly which cc that was.
The extra bit in _default_order is probably not strictly necessary for
NAG, unless you want Spack to look for NAG as the default compiler on
systems where gcc and the others are unavailable. I think that's more
relevant for XL -- I can imagine a system with only XL, but I can't
imagine one with only NAG.
-Todd