Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set IPHONEOS_DEPLOYMENT_TARGET for cargo build #213

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
0xh3rman marked this conversation as resolved.
Show resolved Hide resolved

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
Loading