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

can't set the c++ standard correctly with newer versions of nvc++ #13271

Closed
kjmeagher opened this issue May 30, 2024 · 0 comments · Fixed by #13274
Closed

can't set the c++ standard correctly with newer versions of nvc++ #13271

kjmeagher opened this issue May 30, 2024 · 0 comments · Fixed by #13274

Comments

@kjmeagher
Copy link
Contributor

Describe the bug
When you try to set cpp_std in the normal way meson errors out without event trying.
nvc++ claims that it supports the following strings -std=c89|c90|c99|c11|c17|c18|gnu90|gnu89|gnu99|gnu11|gnu17|gnu18|c++98|c++03|c++11|c++14|c++17|c++20|c++23|gnu++98|gnu++03|gnu++11|gnu++14|gnu++17|gnu++20

To Reproduce
meson.build project('X', 'cpp', default_options: ['cpp_std=c++23'])
run with CXX=nvc++ meson setup build
which outpts meson.build:1:0: ERROR: None of values ['c++23'] are supported by the C++ compiler. Possible values are ['none']

Expected behavior
everything should be build with -std=c++23

system parameters

  • Is this a cross build or just a plain native build (for the same computer)? No
  • what operating system (e.g. MacOS Catalina, Windows 10, CentOS 8.0, Ubuntu 18.04, etc.) CentOS Linux 7
  • what Python version are you using e.g. 3.8.0: Python 3.11.3
  • what meson --version 1.4.1
  • what ninja --version if it's a Ninja build. 1.11.1
kjmeagher added a commit to kjmeagher/meson that referenced this issue May 31, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue May 31, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue May 31, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue Jun 29, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue Jun 29, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue Jul 24, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue Jul 24, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue Jul 26, 2024
kjmeagher added a commit to kjmeagher/meson that referenced this issue Oct 7, 2024
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 a pull request may close this issue.

1 participant