-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
compile-sketches uses gnu++11... #85
Comments
Hi @FredM67. You can add arbitrary flags to the https://github.com/arduino/compile-sketches#cli-compile-flags You can learn the available flags from the Arduino CLI documentation: https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_compile/#options In this case, the flag of interest is cli-compile-flags: |
- --build-property
- compiler.cpp.extra_flags=-std=gnu++17 Please note that usability of build properties is dependent on how each boards platform author has configured their platform. Providing customization of the compilation command via |
Thx a LOT for the example.... I've tried every possible combinaison, but couldn't find the right way to add this flag. |
You are welcome. I completely agree that the general usage of this input is not adequately documented. A pull request adding an example. I would not use something so complex as |
Describe the problem
My sketches need to set gnu++17 instead of gnu++11 in the platform.txt file.
How to do the same when compiling on GitHub?
To reproduce
Compile some sketches with a c++17 feature, not available in c++11.
Expected behavior
It should be possible to overwrite the c++ version used to compile.
'arduino/compile-sketches' version
latest
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: