From c395153ad887d8d9309de3c460a1920ad820c784 Mon Sep 17 00:00:00 2001 From: Linus Gasser Date: Fri, 14 May 2021 08:59:00 +0200 Subject: [PATCH] Activating clangwrap.sh and putting the SDK manually --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index a275090..e6fb01d 100644 --- a/Makefile +++ b/Makefile @@ -31,13 +31,17 @@ ios-arm64: CGO_ENABLED=1 \ GOOS=darwin \ GOARCH=arm64 \ + SDK=iphoneos \ CGO_CFLAGS="-fembed-bitcode" \ + CC=$(PWD)/clangwrap.sh \ go build -buildmode=c-archive -tags ios -o $(IOS_OUT)/arm64.a . ios-x86_64: CGO_ENABLED=1 \ GOOS=darwin \ GOARCH=amd64 \ + SDK=iphonesimulator \ + CC=$(PWD)/clangwrap.sh \ go build -buildmode=c-archive -tags ios -o $(IOS_OUT)/x86_64.a . ios: ios-arm64 ios-x86_64