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

Add checks for gcc version when setting the default c++ standard #899

Merged
merged 1 commit into from Jul 18, 2022

Conversation

rtownson
Copy link
Contributor

Add checks to the configure script, configuration GUI, and egs_view profile before setting std=c++14 as the default c++ standard. If the gcc version is 4 or less, then std=c++11 is used as the default. This just helps protect against failed installations for users with older gcc versions using the default config settings.

Very old versions of gcc might still crash, but the user can easily change the std= flag as necessary.

@rtownson rtownson added this to the Release 2022 milestone Jul 14, 2022
@rtownson rtownson self-assigned this Jul 14, 2022
@rtownson rtownson requested a review from a team as a code owner July 14, 2022 16:04
@ftessier
Copy link
Member

Squashed and reworded commit title to fit.

@ftessier ftessier force-pushed the add-c-std-check branch 2 times, most recently from 16c25c2 to 75350bf Compare July 18, 2022 15:44
@ftessier
Copy link
Member

Added a bit of info in the commit message.

Set the c++ standard to c++14 if the g++ version is 5 or greater,
otherwise fall back on c++11. Some systems still rely on version 4.8
which only supports up to c++11 features.
@ftessier ftessier merged commit 2c11e39 into develop Jul 18, 2022
@ftessier ftessier deleted the add-c-std-check branch July 18, 2022 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants