mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-08-27 20:36:31 -04:00
Set GOFLAGS in Makefile; bump minimum iOS version
This commit is contained in:
@@ -9,6 +9,7 @@ ios-hw: clean
|
||||
GOOS=ios \
|
||||
GOARCH=arm64 \
|
||||
GOARM64=v8.3,crypto \
|
||||
GOFLAGS='-trimpath "-ldflags=-s -w" -buildvcs=false' \
|
||||
SDK=iphoneos \
|
||||
CC=$(PWD)/clangwrap.sh \
|
||||
CGO_CFLAGS="-fembed-bitcode" \
|
||||
@@ -22,6 +23,7 @@ ios-sim: clean
|
||||
GOOS=ios \
|
||||
GOARCH=arm64 \
|
||||
GOARM64=v8.4,crypto \
|
||||
GOFLAGS='-trimpath "-ldflags=-s -w" -buildvcs=false' \
|
||||
SDK=iphonesimulator \
|
||||
CC=$(PWD)/clangwrap.sh \
|
||||
go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-sim.a ..
|
||||
@@ -34,6 +36,7 @@ macos: clean
|
||||
GOOS=darwin \
|
||||
GOARCH=arm64 \
|
||||
GOARM64=v8.4,crypto \
|
||||
GOFLAGS='-trimpath "-ldflags=-s -w" -buildvcs=false' \
|
||||
SDK=macosx \
|
||||
go build -buildmode=c-archive -o $(BUILD_DIR)/cmutton-macos.a ..
|
||||
echo '#import "types.h"\n#import "cmutton-macos.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
MIN_VERSION=26.0
|
||||
MIN_VERSION=26.2
|
||||
|
||||
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
|
||||
CLANG=`xcrun --sdk $SDK --find clang`
|
||||
|
||||
Reference in New Issue
Block a user