aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/yjit.mk
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-09-20 08:36:06 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2022-09-20 14:17:27 -0400
commita8dc49b4d57e0a2d07691176f43e4b7f71874fa7 (patch)
tree27a01beb89cdd7ff652e20723d111638ef9d1e50 /yjit/yjit.mk
parentb3d8dddee7a9ea0bc9c278a5c9faa4df81afd57e (diff)
downloadruby-a8dc49b4d57e0a2d07691176f43e4b7f71874fa7.tar.gz
YJIT: Support MAKE=bmake for release build
This add support for bmake, which should allow building with `configure --enable-yjit` for the BSDs. Tested on FreeBSD 13 and on macOS with `configure MAKE=bmake` on a case-sensitive file system. It works by including a fragment into the Makefile through the configure script, similar to common.mk. It uses the always rebuild approach to keep build system changes minimal.
Diffstat (limited to 'yjit/yjit.mk')
-rw-r--r--yjit/yjit.mk10
1 files changed, 1 insertions, 9 deletions
diff --git a/yjit/yjit.mk b/yjit/yjit.mk
index fe182b3dcc..fc0061eb29 100644
--- a/yjit/yjit.mk
+++ b/yjit/yjit.mk
@@ -23,14 +23,7 @@ YJIT_LIB_TOUCH = touch $@
ifeq ($(YJIT_SUPPORT),yes)
$(YJIT_LIBS): $(YJIT_SRC_FILES)
$(ECHO) 'building Rust YJIT (release mode)'
- $(Q) $(RUSTC) \
- --crate-name=yjit \
- --crate-type=staticlib \
- --edition=2021 \
- -C opt-level=3 \
- -C overflow-checks=on \
- '--out-dir=$(CARGO_TARGET_DIR)/release/' \
- $(top_srcdir)/yjit/src/lib.rs
+ $(Q) $(RUSTC) $(YJIT_RUSTC_ARGS)
$(YJIT_LIB_TOUCH)
else ifeq ($(YJIT_SUPPORT),no)
$(YJIT_LIBS):
@@ -48,7 +41,6 @@ else
endif
# Put this here instead of in common.mk to avoid breaking nmake builds
-# TODO: might need to move for BSD Make support
miniruby$(EXEEXT): $(YJIT_LIBS)
# By using YJIT_BENCH_OPTS instead of RUN_OPTS, you can skip passing the options to `make install`