Commit 490093f5

490093f5c137Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 2 files · ~2 modified

Description

Support a machine-local Makefile override (local.mk)

Add -include local.mk early in the Makefile so a developer can point the bootstrap at an alternative Ruby -- e.g. a YJIT-enabled miniruby -- and set OPT/CC/etc. for their environment without editing committed defaults. Included before the ?= defaults so local.mk wins; a command-line make VAR=... still overrides everything. local.mk is gitignored.

The bootstrap steps already run through $(BOOTSTRAP_RUBY); pointing it at a YJIT miniruby (e.g. BOOTSTRAP_RUBY = /path/to/ruby/miniruby plus YJIT = 1 in local.mk) accelerates the hot-loop-heavy compiler interpretation. REF_RUBY and the gem-dependent steps (prism detect, optcarrot pack) stay on the full system ruby.

Co-Authored-By: Claude Opus 4.8 [email protected]

Details

Commit
490093f5c137
Parent
69b25d852c5d

.gitignoremodifiedView file

@@ -46,3 +46,6 @@
4646 /const_init_defers_for_main_local
4747 /array_new_block_typed_container
4848 /sp_split0
49+
50+# Machine-local Makefile overrides
51+/local.mk