summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2018-10-13 15:13:37 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2018-10-13 15:13:37 -0700
commitc935a078d356d00f98bb418b44feaaaccf780210 (patch)
tree0929aa1610ef4a5d1eb9d5e270f182530e367128 /makefile
parent252f30db1bdb676fa6b5bdc3a664541582c78b3a (diff)
On new Xcode/macOS, /usr/include no longer exists.
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefile b/makefile
index a4c70ba..a0d3732 100644
--- a/makefile
+++ b/makefile
@@ -13,8 +13,10 @@ gxx := $(shell xcrun --sdk iphoneos -f g++)
cycc := $(gxx)
sdk := $(shell xcodebuild -sdk iphoneos -version Path)
+mac := $(shell xcodebuild -sdk macosx -version Path)
+
cycc += -isysroot $(sdk)
-cycc += -idirafter /usr/include
+cycc += -idirafter $(mac)/usr/include
cycc += -F$(sdk)/System/Library/PrivateFrameworks
cycc += -fmessage-length=0