Skip to content

Commit e1ff13b

Browse files
committed
modular-gc-precheck for mswin
1 parent 4fb5d74 commit e1ff13b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

win32/Makefile.sub

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,12 @@ $(ruby_pc): $(RBCONFIG)
13281328
-output=$@ -mode=$(INSTALL_DATA_MODE) -config=rbconfig.rb \
13291329
$(srcdir)/template/ruby.pc.in
13301330

1331+
modular-gc-precheck:
1332+
!if "$(modular_gc_dir)" == ""
1333+
@echo You must configure with --with-modular-gc to use modular GC
1334+
@exit /b 1
1335+
!endif
1336+
13311337
{$(srcdir)/coroutine/win32}.asm{coroutine/win32}.obj:
13321338
$(ECHO) assembling $(<:\=/)
13331339
$(Q) $(AS) $(ASFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(<:\=/)

0 commit comments

Comments
 (0)