Newer versions of xcode will no longer have a /usr/include in the path, meaning many macport/homebrew/default compilers will NOT bring basic library headers into the include path by default. The MAC SDK must be explicitly specified with -isysroot
We have a couple ways to fix this. One is to give an explicit
option and force the user to specify it. Otherwise, we can try to detect OS and version and find ourselves using
xcrun --sdk macosx --show-sdk-path
Newer versions of xcode will no longer have a /usr/include in the path, meaning many macport/homebrew/default compilers will NOT bring basic library headers into the include path by default. The MAC SDK must be explicitly specified with
-isysrootWe have a couple ways to fix this. One is to give an explicit
option and force the user to specify it. Otherwise, we can try to detect OS and version and find ourselves using