Diffusion Craft c43a29fc6e01

Compile with `-isysroot $(xcrun --sdk-path) when building on MacOS

Authored by arichardson on Sep 4 2018, 10:10 AM.

Description

Compile with `-isysroot $(xcrun --sdk-path) when building on MacOS

Summary:
Otherwise /usr/local/include is searched for headers before /usr/include
but /usr/lib is searched for libraries before /usr/local/lib.
This can cause highly confusing errors when building and should prevent
building against homebrew-provided headers instead of the system ones.

See also https://langui.sh/2015/07/24/osx-clang-include-lib-search-paths/

Test Plan: sucessfully built kate+deps on MacOS (failed before)

Reviewers: vonreth, kfunk, Craft

Reviewed By: vonreth, Craft

Differential Revision: https://phabricator.kde.org/D15120

Details

Committed
arichardsonSep 4 2018, 10:19 AM
Reviewer
Craft
Differential Revision
D15120: Compile with `-isysroot $(xcrun --sdk-path) when building on MacOS
Parents
R138:d9d2471389fb: The version must end with 0
Branches
Unknown
Tags
Unknown