Skip to content
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

Fix OptimizerHacks for clang 17 #5823

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

nilsdeppe
Copy link
Member

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@nilsdeppe nilsdeppe added priority critical for progress small Only changes a few lines of code, does a rename or is otherwise quick to review labels Mar 4, 2024
Comment on lines 13 to 15
&& __clang_major__ < 17 && defined(__GLIBCXX__)
#include <string>
// clang v15+ fails to instantiate the following std library templates if
Copy link
Contributor

Choose a reason for hiding this comment

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

Update code comment as well?

Copy link
Member

@wthrowe wthrowe left a comment

Choose a reason for hiding this comment

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

It works with clang 16 without the hack now, so this is probably a change in SpECTRE, not a change in clang. I'd delete the whole section and see if it breaks for anyone.

Edit: Clang 15 fails to compile for unrelated reasons. (Duplicate Composition instantiations)

It seems like we don't need this anymore
@nilsdeppe
Copy link
Member Author

Okay, deleted the code block. Thanks for reviewing!

@kidder
Copy link
Member

kidder commented Mar 4, 2024

works for me

Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

Good enough for me

@knelli2 knelli2 merged commit 1be4ae5 into sxs-collaboration:develop Mar 5, 2024
22 checks passed
@nilsvu nilsvu added bugfix and removed bugfix labels Mar 19, 2024
@nilsdeppe nilsdeppe deleted the mbot_fixes branch April 11, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority critical for progress small Only changes a few lines of code, does a rename or is otherwise quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants