Skip to content

Fix include paths for Windows builds #4170

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
Apr 19, 2017

Conversation

theotherjimmy
Copy link
Contributor

@theotherjimmy theotherjimmy commented Apr 11, 2017

Descritpion

Resolves #3940

How to reproduce

The issue mentioned above can me sumarized as:

This does not work:

mbed compile --source ./

This works:

mbed compile --source .

Both should work.

Why does this fail?

The include directories passed to --source are added as-is to the list
of include directories. GCC, and possibly other compilers, on Windows
does not like the path ./ and will ignore it when searching for header
files.

New behavior

Remove trailing /s before appending include paths to when scanning
resources.

Testing

  • /morph test

@theotherjimmy
Copy link
Contributor Author

/morph test

@theotherjimmy
Copy link
Contributor Author

rebuilding the Cam-CI. It failed from java exception.

@theotherjimmy
Copy link
Contributor Author

@RdaZhongyao could you test?

@RdaZhongyao
Copy link

My local build passed with GCC compiler.

@mbed-bot
Copy link

Result: SUCCESS

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

/morph test

Output

mbed Build Number: 1887

All builds and test passed!

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 12, 2017

retest uvisor

@theotherjimmy
Copy link
Contributor Author

@0xc0170 You could just merge it!

@sg- sg- merged commit 0cfa96c into ARMmbed:master Apr 19, 2017
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