File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77RUST_LIB_TOUCH = touch $@
88
99ifneq ($(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 )
2227endif
You can’t perform that action at this time.
0 commit comments