Skip to content

Exporter - progen include dirs fix #1582

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
Mar 3, 2016
Merged

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Mar 2, 2016

mbed scripts copy files, therefore file paths are not valid at the moment of ahe project generation.
Therefore checks like os.path.isdir or isfile fail. If include is set to TARGET/FOLDER, this would be
treated as a file, and added to the project workspace. This commit fixes it, it adds dirs only to
include_paths, as it should.

If we export to IAR, there are non valid files currently, folders as a result of inc_dirs added to includes. It does not affect build, thus cosmetic error in this case.

I'll have a look at this, how progen or mbed scripts can handle this better. One possibility would be to enable include_paths to be set in progen data, as sometimes (in this case) includes != include_paths

@bridadan

mbed scripts copy files, therefore file paths are not valid at the moment of ahe project generation.
Therefore checks like os.path.isdir or isfile fail. If include is set to TARGET/FOLDER, this would be
treated as a file, and added to the project workspace. This commit fixes it, it adds dirs only to
include_paths, as it should.
0xc0170 added a commit that referenced this pull request Mar 3, 2016
Exporter - progen include dirs fix
@0xc0170 0xc0170 merged commit 7f693b7 into ARMmbed:master Mar 3, 2016
@0xc0170 0xc0170 deleted the fix_include_dirs branch March 3, 2016 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant