-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
vscode c++ debug refuses to respect c++ standard #12278
Comments
It looks like you might have an extra hyphen in your command argument. Can you try |
Tried that, exactly the same result. Still doesn't remove the initial
|
@alligatorjazz A 2nd -std should replace any earlier ones (it does for me). |
@alligatorjazz Are you |
@alligatorjazz Are you using clang version 17 or newer? It was only taken out of experimental with that version. |
@alligatorjazz The Apple clang that comes with Mac is still LLVM version 16. You could try adding arg -fexperimental-library to see if that works. |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
"C/C++ Run C/C++ File" includes an argument that sets the C++ standard to "gnu++14", even after setting it to "c++20" in the extension settings and task arguments.
Steps to reproduce:
tasks.json
arguments array.Debugger Configurations
Other Extensions
No response
Additional Information
No clue how to tackle this further - every guide either told me to change the standard in the extension settings or add c++20 to the clang arguments, neither of which remove the initial
-std=gnu++14
argument which seems to be added automatically and separately from the arguments in the tasks.json. The actual repo I am having issues with is linked here.The text was updated successfully, but these errors were encountered: