File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3986,11 +3986,11 @@ AS_CASE(["${ZJIT_SUPPORT}"],
3986
3986
] ,
3987
3987
[ dev] , [
3988
3988
rb_rust_target_subdir=debug
3989
- CARGO_BUILD_ARGS ='--profile dev'
3989
+ ZJIT_CARGO_BUILD_ARGS ='--profile dev --features disasm '
3990
3990
AC_DEFINE ( RUBY_DEBUG , 1 )
3991
3991
] )
3992
3992
3993
- AS_IF ( [ test -n "${CARGO_BUILD_ARGS }"] , [
3993
+ AS_IF ( [ test -n "${ZJIT_CARGO_BUILD_ARGS }"] , [
3994
3994
AC_CHECK_TOOL ( CARGO , [ cargo] , [ no] )
3995
3995
AS_IF ( [ test x"$CARGO" = "xno"] ,
3996
3996
AC_MSG_ERROR ( [ cargo is required. Installation instructions available at https://www.rust-lang.org/tools/install] )
@@ -4015,6 +4015,7 @@ AC_SUBST(YJIT_SUPPORT)dnl what flavor of YJIT the Ruby build includes
4015
4015
AC_SUBST ( RUSTC ) dnl Rust compiler command
4016
4016
AC_SUBST ( CARGO ) dnl Cargo command for Rust builds
4017
4017
AC_SUBST ( CARGO_BUILD_ARGS ) dnl for selecting Rust build profiles
4018
+ AC_SUBST ( ZJIT_CARGO_BUILD_ARGS ) dnl for selecting Rust build profiles
4018
4019
AC_SUBST ( YJIT_LIBS ) dnl for optionally building the Rust parts of YJIT
4019
4020
AC_SUBST ( YJIT_OBJ ) dnl for optionally building the C parts of YJIT
4020
4021
AC_SUBST ( ZJIT_SUPPORT ) dnl what flavor of ZJIT the Ruby build includes
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ ZJIT_OBJ=@ZJIT_OBJ@
112
112
ZJIT_LIBOBJ = $(ZJIT_LIBS:.a=.@OBJEXT@ )
113
113
CARGO_TARGET_DIR =@abs_top_builddir@/yjit/target
114
114
CARGO_BUILD_ARGS =@CARGO_BUILD_ARGS@
115
+ ZJIT_CARGO_BUILD_ARGS =@ZJIT_CARGO_BUILD_ARGS@
115
116
ZJIT_CARGO_TARGET_DIR =@abs_top_builddir@/zjit/target
116
117
LDFLAGS = @STATIC@ $(CFLAGS ) @LDFLAGS@
117
118
EXE_LDFLAGS = $(LDFLAGS )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ $(ZJIT_LIBS): $(ZJIT_SRC_FILES)
35
35
+$(Q )$(CHDIR ) $(top_srcdir ) /zjit && \
36
36
CARGO_TARGET_DIR=' $(ZJIT_CARGO_TARGET_DIR)' \
37
37
CARGO_TERM_PROGRESS_WHEN=' never' \
38
- $(CARGO ) $(CARGO_VERBOSE ) build $(CARGO_BUILD_ARGS )
38
+ $(CARGO ) $(CARGO_VERBOSE ) build $(ZJIT_CARGO_BUILD_ARGS )
39
39
$(ZJIT_LIB_TOUCH )
40
40
else
41
41
endif
You can’t perform that action at this time.
0 commit comments