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

cppcheck: error: unrecognized command line option: "--std=c++2a" #3944

Closed
1 task done
maciekr1234 opened this issue May 4, 2021 · 0 comments · Fixed by #4070
Closed
1 task done

cppcheck: error: unrecognized command line option: "--std=c++2a" #3944

maciekr1234 opened this issue May 4, 2021 · 0 comments · Fixed by #4070

Comments

@maciekr1234
Copy link

What kind of issue is this?

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

Configuration

Operating system: Windows 10

PlatformIO Version (platformio --version): PlatformIO Core, version 5.2.0a6

Description of problem

When I use -std=gnu++2a in my build flags and I try to run pio check I get an error:

cppcheck: error: unrecognized command line option: "--std=c++2a".

It seems similiar to my previous issue #3653, to confirm that I've changed

cmd.append("-" + flag.replace("gnu", "c"))

cmd.append("-" + flag.replace("gnu", "c").replace("2a","20"))

After that hardcoded fix I am able to run cppcheck, I haven't check other tools so they might have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants