It is possible to see the compilers in a custom scope,
$ spack --config-scope configs compilers
==> Available compilers
-- gcc centos7-x86_64 -------------------------------------------
gcc@9.2.0 gcc@8.3.0 gcc@4.9.4 gcc@4.8.5
-- intel centos7-x86_64 -----------------------------------------
intel@19.0.5.281
However, it is not possible to add compilers to a custom scope.
$ mkdir newscope
$ spack --config-scope newscope compiler add
==> Found no new compilers
==> Compilers are defined in the following files:
/Users/gpjohnsn/.spack/linux/compilers.yaml
Removing the user scope compiler:
$ rm ~/.spack/linux/compilers.yaml
$ spack --config-scope newscope compiler add
==> Added 1 new compiler to /Users/gpjohnsn/.spack/linux/compilers.yaml
gcc@4.8.5
==> Compilers are defined in the following files:
/Users/gpjohnsn/.spack/linux/compilers.yaml
It would be really nice to be able to add compilers to a custom scope. That would allow more control and hopefully prevent having entries in the user scope interfere with a custom compilers.yaml file.
It is possible to see the compilers in a custom scope,
However, it is not possible to add compilers to a custom scope.
Removing the user scope compiler:
It would be really nice to be able to add compilers to a custom scope. That would allow more control and hopefully prevent having entries in the user scope interfere with a custom compilers.yaml file.