spack compiler info: show non-external compilers too#51718
Merged
alalazo merged 3 commits intospack:developfrom Dec 9, 2025
Merged
spack compiler info: show non-external compilers too#51718alalazo merged 3 commits intospack:developfrom
alalazo merged 3 commits intospack:developfrom
Conversation
Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Massimiliano Culpo <[email protected]>
3 tasks
There was a problem hiding this comment.
Pull request overview
This PR extends the spack compiler info command to display information about installed compilers and compilers from registered buildcaches (when using the --remote flag), not just external compilers. Previously, compiler info only showed external compilers from YAML configuration files.
Key changes:
- Added
--remoteflag tospack compiler infocommand to enable querying compilers from buildcaches - Refactored common compiler querying logic into a shared
_all_available_compilers()helper function - Updated
compiler_info()to display compiler information from multiple sources including installed packages
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| lib/spack/spack/cmd/compiler.py | Added --remote argument to info parser; refactored compiler querying logic into _all_available_compilers() helper function; updated compiler_info() to handle non-external compilers and display detailed information including compiler executables, flags, and environment settings |
| share/spack/spack-completion.bash | Added --remote option to bash completion for compiler info command |
| share/spack/spack-completion.fish | Added --remote option to fish shell completion for compiler info command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Massimiliano Culpo <[email protected]>
haampie
approved these changes
Dec 9, 2025
becker33
pushed a commit
that referenced
this pull request
Jan 10, 2026
Signed-off-by: Massimiliano Culpo <[email protected]>
becker33
pushed a commit
that referenced
this pull request
Jan 11, 2026
Signed-off-by: Massimiliano Culpo <[email protected]> Signed-off-by: Gregory Becker <[email protected]>
becker33
pushed a commit
that referenced
this pull request
Jan 15, 2026
Signed-off-by: Massimiliano Culpo <[email protected]> Signed-off-by: Gregory Becker <[email protected]>
vjranagit
pushed a commit
to vjranagit/spack
that referenced
this pull request
Jan 18, 2026
Signed-off-by: Massimiliano Culpo <[email protected]> Signed-off-by: Gregory Becker <[email protected]>
becker33
pushed a commit
that referenced
this pull request
Jan 22, 2026
Signed-off-by: Massimiliano Culpo <[email protected]> Signed-off-by: Gregory Becker <[email protected]>
becker33
pushed a commit
that referenced
this pull request
Jan 26, 2026
Signed-off-by: Massimiliano Culpo <[email protected]> Signed-off-by: Gregory Becker <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #51681
After this change,
spack compiler infowill start showing installed compilers and, on demand, compilers from buildcaches.Before
After