Skip to content

Commit

Permalink
Warn if libmmtk_ruby isn't built
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Oct 3, 2024
1 parent 231cecd commit c38861e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1906,8 +1906,10 @@ rewindable:
HELP_EXTRA_TASKS = ""

MMTK_BUILD=debug
MMTK_SRC_PATH=$(srcdir)/gc/mmtk
MMTK_LIB_PATH=$(srcdir)/gc/mmtk/target/$(MMTK_BUILD)/libmmtk_ruby.$(LIBEXT)


shared-gc: probes.h
$(Q) if test -z $(shared_gc_dir); then \
echo "You must configure with --with-shared-gc to use shared GC"; \
Expand All @@ -1916,6 +1918,10 @@ shared-gc: probes.h
echo "You must specify SHARED_GC with the GC to build"; \
exit 1; \
else \
if test ! -f $(MMTK_LIB_PATH); then \
echo "libmmtk_ruby.$(LIBEXT) not found. Please run 'cargo build' inside $(MMTK_SRC_PATH)"; \
exit 1; \
fi; \
$(MAKEDIRS) $(shared_gc_dir); \
echo generating $(shared_gc_dir)librubygc.$(SHARED_GC).$(SOEXT); \
if [ "$(SHARED_GC)" = "mmtk" ]; then \
Expand Down

0 comments on commit c38861e

Please sign in to comment.