summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-12-20 16:46:57 +0900
committerNobuyoshi Nakada <[email protected]>2024-12-22 22:10:26 +0900
commite1ff13b1465cc548ff1f9416c22492e6177d59a3 (patch)
tree0acef35fea38f258a69ce0403025b97093b560d6
parent4fb5d746ce02dcaf8702f97f88946c090b65d4a2 (diff)
modular-gc-precheck for mswin
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12428
-rw-r--r--win32/Makefile.sub6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 09b8debd76..2864c8ec3f 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1328,6 +1328,12 @@ $(ruby_pc): $(RBCONFIG)
-output=$@ -mode=$(INSTALL_DATA_MODE) -config=rbconfig.rb \
$(srcdir)/template/ruby.pc.in
+modular-gc-precheck:
+!if "$(modular_gc_dir)" == ""
+ @echo You must configure with --with-modular-gc to use modular GC
+ @exit /b 1
+!endif
+
{$(srcdir)/coroutine/win32}.asm{coroutine/win32}.obj:
$(ECHO) assembling $(<:\=/)
$(Q) $(AS) $(ASFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(<:\=/)