Skip to content

Fix cc wrapper#443

Merged
climbfuji merged 1 commit into
spack-stack-devfrom
AlexanderRichert-NOAA-patch-1
Jun 14, 2024
Merged

Fix cc wrapper#443
climbfuji merged 1 commit into
spack-stack-devfrom
AlexanderRichert-NOAA-patch-1

Conversation

@AlexanderRichert-NOAA
Copy link
Copy Markdown
Collaborator

@AlexanderRichert-NOAA AlexanderRichert-NOAA commented Jun 14, 2024

This PR fixes lib/spack/env/cc by making the Intel warning-related clauses added in commit d465fa0 POSIX compliant. Otherwise this script will fail on many OSes. See NOAA-EMC/UPP#974 (comment) and https://github.com/NOAA-EMC/UPP/actions/runs/9506866281/job/26205047049?pr=974 (and for that matter, https://stackoverflow.com/questions/229551/how-to-check-if-a-string-contains-a-substring-in-bash)

Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji 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 bug fix. I will note that the previous PR will not be merged into spack (develop) as is (working with the spack developers on it), therefore this PR will also need to be reverted. But for now, let's merge it.

Interesting that neither CI (Ubuntu, macOS), nor the systems I worked on (Oracle Linux, CentOS) had any issues with it.

@climbfuji climbfuji merged commit 3157121 into spack-stack-dev Jun 14, 2024
@climbfuji climbfuji deleted the AlexanderRichert-NOAA-patch-1 branch June 14, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants