Skip to content

compiler flags: fix multiple compilers with different flags#35721

Merged
tgamblin merged 2 commits intodevelopfrom
bugfix/identical-compilers-different-flags
Mar 6, 2023
Merged

compiler flags: fix multiple compilers with different flags#35721
tgamblin merged 2 commits intodevelopfrom
bugfix/identical-compilers-different-flags

Conversation

@becker33
Copy link
Copy Markdown
Member

@becker33 becker33 commented Feb 27, 2023

Fixes #35634
Fixes #34370

Currently, if two compilers with the same spec differ on the flags, the concretizer will:

  1. mix both sets of flags for the spec in the ASP program
  2. error noting that the set of flags from the compiler (both of them) doesn't match the set from the lower priority compiler

This PR fixes both -- only flags from the highest priority compiler with a given spec are considered.

@white238

@spackbot-app spackbot-app bot added compilers core PR affects Spack core functionality tests General test capability(ies) labels Feb 27, 2023
white238
white238 previously approved these changes Feb 27, 2023
Copy link
Copy Markdown
Contributor

@white238 white238 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turn around @becker33 !

@alalazo alalazo added this to the v0.19.2 milestone Mar 1, 2023
@RikkiButler20 RikkiButler20 self-requested a review March 1, 2023 15:22
Copy link
Copy Markdown
Contributor

@RikkiButler20 RikkiButler20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tgamblin tgamblin merged commit 2ff337a into develop Mar 6, 2023
@tgamblin tgamblin deleted the bugfix/identical-compilers-different-flags branch March 6, 2023 18:29
jmcarcell pushed a commit to key4hep/spack that referenced this pull request Apr 13, 2023
)

Currently, if two compilers with the same spec differ on the flags, the concretizer will:

1. mix both sets of flags for the spec in the ASP program
2. error noting that the set of flags from the compiler (both of them) doesn't match the set from the lower priority compiler

This PR fixes both -- only flags from the highest priority compiler with a given spec are considered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compilers core PR affects Spack core functionality tests General test capability(ies)

Projects

None yet

5 participants