Skip to content

Commit bf49c4f

Browse files
committed
JITs: Add back MACOSX_DEPLOYMENT_TARGET=11.0 setting to avoid warning
See: 41251fd
1 parent 081a44f commit bf49c4f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

defs/jit.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
RUST_LIB_TOUCH = touch $@
88

99
ifneq ($(JIT_CARGO_SUPPORT),no)
10+
# NOTE: MACOSX_DEPLOYMENT_TARGET to match `rustc --print deployment-target` to avoid the warning below.
11+
# ld: warning: object file (target/debug/libjit.a(<libcapstone object>)) was built for
12+
# newer macOS version (15.2) than being linked (15.0)
13+
# This limits us to an older set of macOS API in the rust code, but we don't use any.
1014
$(RUST_LIB): $(srcdir)/jit.rs
1115
$(Q)if [ '$(ZJIT_SUPPORT)' != no -a '$(YJIT_SUPPORT)' != no ]; then \
1216
echo 'building YJIT and ZJIT ($(JIT_CARGO_SUPPORT:yes=release) mode)'; \
@@ -17,6 +21,7 @@ $(RUST_LIB): $(srcdir)/jit.rs
1721
fi
1822
+$(Q)CARGO_TARGET_DIR='$(CARGO_TARGET_DIR)' \
1923
CARGO_TERM_PROGRESS_WHEN='never' \
24+
MACOSX_DEPLOYMENT_TARGET=11.0 \
2025
$(CARGO) $(CARGO_VERBOSE) build --manifest-path '$(top_srcdir)/Cargo.toml' $(CARGO_BUILD_ARGS)
2126
$(RUST_LIB_TOUCH)
2227
endif

0 commit comments

Comments
 (0)