-
Notifications
You must be signed in to change notification settings - Fork 175
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
Duplicate optimization settings on IAR EWARM export #487
Comments
|
Whoops. Thanks for finding this. The python that is run when you export is here: https://github.com/ARMmbed/mbed-os/tree/master/tools/export/iar This may not be the only duplicate option. You are welcome to submit a PR to mbed-os @ASealion. I can help out, or make the PR. |
|
Good call on the labels @screamerbg. I'm going to take a look today, @ASealion. I'll mention the PR I create here. |
|
Looks like this line needs to check for |
|
See ARMmbed/mbed-os#4293 for the fix |
|
In IAR: Project -> Options-> C/C++ Compiler: “Extra Options” tab, scroll down and delete the “-Oh” line. |
|
Yup. That's what the PR I mentioned prevents you from having to do. |
tested on 7.7 and 8.11
Steps to reproduce
After exporting a project from the online compiler is is not possible to compile the project.
Since the project options on the "Optimizer" are set to "High" and there is a extra Option "-Oh".
This leads to the compiler message:
[Su004]: Option -O can only occur once
The text was updated successfully, but these errors were encountered: