Skip to content

Commit a108fff

Browse files
committed
Install the right version of libmmtk_julia
1 parent 6307dab commit a108fff

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Makefile

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ endif
281281
endif
282282
endif
283283

284-
ifneq (${MMTK_PLAN},None)
285-
JL_PRIVATE_LIBS-0 += libmmtk_julia
286-
endif
287-
288284
# Note that we disable MSYS2's path munging here, as otherwise
289285
# it replaces our `:`-separated list as a `;`-separated one.
290286
define stringreplace
@@ -379,6 +375,24 @@ endif
379375
# Install `dsymutil` into private_libexecdir/
380376
$(INSTALL_M) $(build_depsbindir)/dsymutil$(EXE) $(DESTDIR)$(private_libexecdir)/
381377

378+
ifneq (${MMTK_PLAN},None)
379+
# Make sure we use the right version of $MMTK_PLAN, $MMTK_MOVING and $MMTK_BUILD
380+
ifeq (${MMTK_PLAN},Immix)
381+
LIB_PATH_PLAN = immix
382+
else ifeq (${MMTK_PLAN},StickyImmix)
383+
LIB_PATH_PLAN = sticky
384+
endif
385+
386+
ifeq ($(MMTK_MOVING), 0)
387+
LIB_PATH_MOVING := non_moving
388+
else
389+
LIB_PATH_MOVING := moving
390+
endif
391+
392+
# Install `libmmtk_julia` into private_libdir/
393+
$(INSTALL_M) $(build_libdir)/$(LIB_PATH_PLAN)/$(LIB_PATH_MOVING)/$(MMTK_BUILD)/libmmtk_julia.$(SHLIB_EXT) $(DESTDIR)$(private_libdir)
394+
endif
395+
382396
# Copy public headers
383397
cp -R -L $(build_includedir)/julia/* $(DESTDIR)$(includedir)/julia
384398
# Copy system image

0 commit comments

Comments
 (0)