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

Make C++ standard user-selectable #78

Open
calcmogul opened this issue Oct 11, 2021 · 0 comments
Open

Make C++ standard user-selectable #78

calcmogul opened this issue Oct 11, 2021 · 0 comments

Comments

@calcmogul
Copy link
Member

calcmogul commented Oct 11, 2021

C++ dashboard applications can use newer compilers and standard versions than C++17. native-utils appends the C++17 flag after the user's flags, so it always overrides the standard version to C++17.

I tried changing the standard version by adding it.cppCompiler.args.add('-std=c++20') and it.cppCompiler.args.remove('-std=c++17') to build.gradle. The former added the C++20 flag, but the latter didn't stop the C++17 flag from being added, since I assume that happens later.

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

No branches or pull requests

1 participant