Skip to content
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

Closed
ASealion opened this issue May 2, 2017 · 7 comments · Fixed by ARMmbed/mbed-os#4293
Closed

Duplicate optimization settings on IAR EWARM export #487

ASealion opened this issue May 2, 2017 · 7 comments · Fixed by ARMmbed/mbed-os#4293
Assignees

Comments

@ASealion
Copy link

ASealion commented May 2, 2017

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

@0xc0170
Copy link
Contributor

0xc0170 commented May 2, 2017

cc @theotherjimmy

@theotherjimmy
Copy link
Contributor

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.

@theotherjimmy
Copy link
Contributor

Good call on the labels @screamerbg.

I'm going to take a look today, @ASealion. I'll mention the PR I create here.

@theotherjimmy
Copy link
Contributor

Looks like this line needs to check for -Oh

@theotherjimmy
Copy link
Contributor

See ARMmbed/mbed-os#4293 for the fix

@Val-Apana
Copy link

In IAR: Project -> Options-> C/C++ Compiler: “Extra Options” tab, scroll down and delete the “-Oh” line.

@theotherjimmy
Copy link
Contributor

Yup. That's what the PR I mentioned prevents you from having to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants