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
GitHub-CI: test CPP17 #13508
GitHub-CI: test CPP17 #13508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
@@ -68,7 +68,7 @@ jobs: | |||
mkdir build | |||
cd build | |||
cmake -D CMAKE_BUILD_TYPE=Debug \ | |||
-D DEAL_II_CXX_FLAGS='-Werror' \ | |||
-D DEAL_II_CXX_FLAGS='-Werror -std=c++17' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also use the CMAKE functionality. Is there a difference? Might be just portability.
I'm actually undecided what I prefer personally :-)
-D DEAL_II_CXX_FLAGS='-Werror -std=c++17' \ | |
-D CMAKE_CXX_STANDARD=17 \ | |
-D DEAL_II_CXX_FLAGS='-Werror' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just switches one of the testers to C++17. Ideally, or course, we would add a separate CI step that adds a C++17 tester, but that increases the wait time we have (or exceeds whatever limit we are allotted). How did you choose this particular tester to switch to C++17? I supposed this leaves enough testers who continue to check C++14.
This is how we normally do it. If we see that something is not tested (in the past: python bindings, 64-bit indices), we just modify one test. We still have enough tests with C++14. Adding a new test would be an option, but would mean longer queue times. |
I don't think setting
in the respective CI run. We should rather do |
Interesting. I think in addition to |
That isn't enough for me. I think I remember that #10307 ignores the |
CI says now: |
Nice! Now we just need a tester for C++20 ;-) |
@bangerth Couldn't we just simply convert the C++17 to a C++20 test? What would we miss? |
We probably could, but I don't think we use any C++20 features yet (even with the appropriate But that might change in the future, of course. Do we have a tester that already has a compiler that's new enough? I think we'd need GCC 11 at least. |
As discussed with @tjhei.
Tempted by #13497 and #13502.