Skip to content

add compiler to custom scope #14516

@glennpj

Description

@glennpj

It is possible to see the compilers in a custom scope,

$ spack --config-scope configs compilers
==> Available compilers
-- gcc centos7-x86_64 -------------------------------------------
[email protected]  [email protected]  [email protected]  [email protected]

-- intel centos7-x86_64 -----------------------------------------
[email protected]

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
    [email protected]
==> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions