Is there any reason to remove the --dry-run flag from the compile command? I find useful to just check compilation without generating the build output folder...
I'm trying to change the optimization flag updating platform.txt (e.g. compiler.optimization_flags=-O0) and also adding a platform.local.txt to override the default variables but the compiler seems to ever use -Os, any idea?
Is there any reason to remove the --dry-run flag from the compile command?
Arduino CLI now defaults to the --dry-run behavior, so there is no longer any need for that flag.
neutrinonet:
I'm trying to change the optimization flag updating platform.txt (e.g. compiler.optimization_flags=-O0) and also adding a platform.local.txt to override the default variables but the compiler seems to ever use -Os, any idea?
Please provide the details about what you tried and I'm sure I'll be able to help you out.
Thanks for your fast reply. Good to know about the compile command. About optimization flags with default platform.txt (-Os) the output of the compile --show-properties shows:
but when I modify platform.txt reading "compiler.optimization_flags=-O3" the output of the commands above are the same (i.e. still using -Os), I expect instrad to report the updated optimisation flag.