newlib-nano: add include directory#9080
Conversation
The newlib-nano include directory can be named either newlib-nano or nano, so we should make sure it is added in both cases.
|
@gebart @kaspar030 ready for approval? |
|
I'm sorry to come until now, but this PR broke compilation for ARM platforms on OS X. I'll investigate for a solution. |
|
@smlng @emmanuelsearch can you verify just to check if it's not only my local setup? |
|
This PR broke compilation in ArchLinux. As far as I can tell, it's not really the fault of this change, but rather the newlib package in Arch is not installing the nano directory properly (see https://bugs.archlinux.org/task/50481 reported by someone at OTAkeys). @kYc0o Maybe in OSX there is a similar problem. As a workaround, can we fall back to what we were doing previousl if neither the "nano" or "newlib-nano" directories are found? |
|
I found a more elegant way to fix the issue. See #9216. |
Contribution description
In libnewlib-arm-none-eabi version 2.4.0.20160527-3 the include directory is called nano iso newlib-nano. This fix checks for the existence of either directories and adds it to the include path.