Skip to content

Commit

Permalink
Set IPHONEOS_DEPLOYMENT_TARGET for cargo build (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xh3rman committed Jun 17, 2024
1 parent 8891c3e commit 8eac642
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gemstone/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ LIB_NAME := gemstone
STATIC_LIB_NAME := lib$(LIB_NAME).a
UDL_NAME := $(LIB_NAME).udl
BUILD_MODE :=
IPHONEOS_DEPLOYMENT_TARGET := 16.0

ifeq ($(BUILD_MODE),)
BUILD_MODE_TARGET := debug
Expand Down Expand Up @@ -63,8 +64,9 @@ test-ios:
bindgen: bindgen-swift bindgen-kotlin

build-targets:
cargo build --timings --target aarch64-apple-ios-sim --target aarch64-apple-ios --$(BUILD_MODE)
cargo +$(NIGHTLY) build --timings -Z build-std --lib --target aarch64-apple-ios-macabi --$(BUILD_MODE)
@echo "iOS deployment target ${IPHONEOS_DEPLOYMENT_TARGET}"
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET} cargo build --timings --target aarch64-apple-ios-sim --target aarch64-apple-ios --$(BUILD_MODE)
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET} cargo +$(NIGHTLY) build --timings -Z build-std --lib --target aarch64-apple-ios-macabi --$(BUILD_MODE)

bindgen-swift:
@mkdir -p $(GEN_SWIFT_FOLDER)
Expand Down

0 comments on commit 8eac642

Please sign in to comment.