Skip to content

Remove unnecessary absolute paths from IAR and ARM compilers #3414

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 2 commits into from
Dec 15, 2016

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Dec 9, 2016

Description

Both the ARM and IAR compilers use absolute paths to explicitly include their standard libraries. It seems that for both of these compilers, these paths are already in their default search paths, so using an absolute path is not necessary. This fixes an issue when exporting to make and the paths are incorrectly configured. This should now work out-of-the box.

Status

READY

Migrations

If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.

NO

Todos

  • mbed OS 5 tests
  • mbed OS 2 test (should inclued uARM too)
  • exporter tests

Notes

Requesting @theotherjimmy and @screamerbg to review this since it modifies the toolchains

This fixes an issue where the absolute path causes a file error if the
compiler paths are configured incorrectly. It uses a relative path
instead now (the files appears to be in the default search path).
@bridadan bridadan changed the title Remove unnecessary includes libs from IAR and ARM Remove unnecessary absolute paths from IAR and ARM compilers Dec 9, 2016
@bridadan
Copy link
Contributor Author

bridadan commented Dec 9, 2016

/morph export-build

@bridadan
Copy link
Contributor Author

bridadan commented Dec 9, 2016

/morph test

@bridadan
Copy link
Contributor Author

bridadan commented Dec 9, 2016

@mbed-bot: TEST

HOST_OSES=ALL
BUILD_TOOLCHAINS=ALL
TARGETS=ALL


c_flags_cmd.extend([
"--thumb", "--dlib_config", "DLib_Config_Full.h"
])
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@mbed-bot
Copy link

mbed-bot commented Dec 9, 2016

Result: FAILURE

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

/morph export-build

Output

mbed Build Number: 50

Exporter Build failed!

@bridadan
Copy link
Contributor Author

bridadan commented Dec 9, 2016

Failure should be fixed by #3416

@mbed-bot
Copy link

mbed-bot commented Dec 9, 2016

[Build 1159]
SUCCESS: Building succeeded and tests were run! Be sure to check the test results

@mbed-bot
Copy link

mbed-bot commented Dec 9, 2016

Result: SUCCESS

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

/morph test

Output

mbed Build Number: 1247

All builds and test passed!

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 13, 2016

LGTM

@bridadan
Copy link
Contributor Author

#3416 is now merged, rerunning exporter tests now.

/morph export-build

@bridadan
Copy link
Contributor Author

retest uvisor

@mbed-bot
Copy link

Result: SUCCESS

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

/morph export-build

Output

mbed Build Number: 61

All exports and builds passed!

@sg- sg- merged commit 92f2c38 into ARMmbed:master Dec 15, 2016
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.

5 participants