Skip to content

System with multiple compilers #656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

System with multiple compilers #656

wants to merge 2 commits into from

Conversation

pearce8
Copy link
Collaborator

@pearce8 pearce8 commented Mar 3, 2025

Description

When some of the dependencies don't build with the default compiler, we use this syntax to provide an alternative compiler::

packages:
  all:
    require:
    - one_of: ["%cce", "%gcc"]  # this line makes spack use cce to build where possible, gcc otherwise
  • Depends on Refactor Systems to Initialize Using Dictionaries #658
  • What is this called in Spack, and can we link to where this is explained?
  • How to detect that Spack is building a secondary compiler?
  • This should be explained in how to add a system
  • Add a test to verify that only the special packages use the secondary compiler to be added to CI
  • altdiff option to show which compiler was used to build which dependence

@pearce8 pearce8 added system New or modified system config docs Improvements or additions to documentation changes requested Changes requested labels May 26, 2025
@pearce8
Copy link
Collaborator Author

pearce8 commented May 26, 2025

@scheibelp Please take this on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes requested docs Improvements or additions to documentation system New or modified system config
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants