From c935a078d356d00f98bb418b44feaaaccf780210 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 13 Oct 2018 15:13:37 -0700 Subject: On new Xcode/macOS, /usr/include no longer exists. --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3