How to provide compiler arguments/options?


I was looking for options, how to provide compiler arguments for setting warning levels and optimization levels using Particle Workbench or CLI?

Thank you,

This is not possible in the CLI. It’s not possible with the cloud compiler in Workbench, which use the CLI.

It may be possible to use a in Workbench with local compile, but using it can be tricky and it’s not documented. If you search for it in the forums you’ll find some examples.

You can override the optimization and warning levels within a file using #pragma. That works with cloud and local compiles but requires modifying the source. That’s a standard gcc feature.

Thank you for the update Rick.



Hi Rick,

Thank you again. I have few more questions which are needed for our product BSC support-

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.