Skip to content

disable -f option for assembly files for IAR #4977

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

Merged
merged 1 commit into from
Aug 28, 2017
Merged

disable -f option for assembly files for IAR #4977

merged 1 commit into from
Aug 28, 2017

Conversation

studavekar
Copy link
Contributor

@studavekar studavekar commented Aug 25, 2017

This fixes IAR build failure #4879 .

@studavekar
Copy link
Contributor Author

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1120

All builds and test passed!

@studavekar
Copy link
Contributor Author

/morph mbed2-release

@studavekar
Copy link
Contributor Author

/morph test

@studavekar
Copy link
Contributor Author

/morph test-nightly

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph mbed2-release

Output

mbed Build Number: 46

Build failed!

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1124

All builds and test passed!

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1125

All builds and test passed!

@studavekar
Copy link
Contributor Author

/morph mbed2-release

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph mbed2-release

@studavekar
Copy link
Contributor Author

@theotherjimmy can you please review.

cc : @0xc0170 @adbridge @sg-

Copy link
Contributor

@sg- sg- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this would matter but we use .txt extension with -f and the user manual says the extension should be .xcl

From #4879

06:22:52 [DEBUG] Compile: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\bin\iasmarm ... -f .\BUILD\NUCLEO_F767ZI\IAR\.includes_5a547c6d82611f64c4e2715b8a0e2ca1.txt

and

By default, extended command line files have the extension xcl, and can be specified
using the -f command line option. For example, to read the command line options from
extend.xcl, enter:
iasmarm -f extend.xcl

Assuming this doesn't make a difference, what is in the file included by -f that we'd loose?

@theotherjimmy
Copy link
Contributor

@sg-

what is in the file included by -f that we'd loose?

We provide the include directories to the preprocessor via the -f switch. I don't think anyone is relying on including things using the C preprocessor in assembly. As a quick check, find -name '*.S' | rg -e "#include" returns no matches.

@theotherjimmy
Copy link
Contributor

Oh, FYI, rg is my grep (it's actually ripgrep, but that's not super important)

@c1728p9
Copy link
Contributor

c1728p9 commented Aug 28, 2017

@sg- I tried changing the extension to .xcl with the test application that was sent to IAR and iasmarm still crashes.

After this PR goes in and IAR is working with CI, another pr should probably be made to turn off assembly pre-processing include directories for assembly files in the other toolchains.

@deepikabhavnani
Copy link

deepikabhavnani commented Aug 28, 2017

As per the development guide -f is C/C++ Compiler option only and should be set in C/C++ Extra options

@theotherjimmy
Copy link
Contributor

@deepikabhavnani Good point. That might explain why it's not working so well. 😆

@studavekar
Copy link
Contributor Author

If the changes looks good we should merge it to unblock CI.

@theotherjimmy
Copy link
Contributor

Agreed. Just a sec.

@theotherjimmy
Copy link
Contributor

@studavekar Unblocking CI!

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

Successfully merging this pull request may close these issues.

7 participants