Elizabeth,
You ask good questions. I was looking in the section on compiler configuration:
I’ll try to put together a patch to the docs to refer to concretization preferences in the compiler configuration section.
I was also hoping that some variation on
spack compiler info —default
or
spack compiler default
or something like that would give me the information I was looking for. Maybe I can put together a patch for that, too.
There was one gotcha, which was also related to the documentation. In my packages.yaml, I had:
cmake:
paths:
cm...@3.4.3%cl...@3.5.0: /usr/local/bin/cmake
buildable: False
That was a bad idea. I really wanted:
cmake:
paths:
cm...@3.4.3: /usr/local/bin/cmake
buildable: False
The former version effectively set my default compiler to cl...@3.5.0 for all cmake-based projects! I find that behavior to be pretty subtle, even though I understand it. It might be a good idea if one of the external package examples did not
specify a compiler. I even think using the (latter) cmake example would be a good one for the manual. I’m sure it’s what many people would want.