Skip to content

Commit 393308c

Browse files
committed
Enables building with moving/non-moving, sticky/immix, debug/release using the binary builder
1 parent eff8ba4 commit 393308c

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

Make.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,9 @@ MMTK_BUILD ?= release
844844
ifeq (${MMTK_PLAN},Immix)
845845
JCXXFLAGS += -DMMTK_PLAN_IMMIX
846846
JCFLAGS += -DMMTK_PLAN_IMMIX
847+
else ifeq (${MMTK_PLAN},StickyImmix)
848+
JCXXFLAGS += -DMMTK_PLAN_STICKYIMMIX
849+
JCFLAGS += -DMMTK_PLAN_STICKYIMMIX
847850
else
848851
$(error "Unsupported MMTk plan: $(MMTK_PLAN)")
849852
endif

deps/checksums/mmtk_julia

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ mmtk_julia-c9e046baf3a0d52fe75d6c8b28f6afd69b045d95.tar.gz/md5/73a8fbea71edce30a
88
mmtk_julia-c9e046baf3a0d52fe75d6c8b28f6afd69b045d95.tar.gz/sha512/374848b7696b565dea66daa208830581f92c1fcb0138e7a7ab88564402e94bc79c54b6ed370ec68473e31e2bd411bf82c97793796c31d39aafbbfffea9c05588
99
mmtk_julia.v0.30.4+0.x86_64-linux-gnu.tar.gz/md5/8cdeb14fd69945f64308be49f6912f9c
1010
mmtk_julia.v0.30.4+0.x86_64-linux-gnu.tar.gz/sha512/3692502f65dec8c0971b56b9bf8178641892b390d520cbcd69880d75b7500e6341534d87882246e68998f590f824ec54c18f4b8fb4aa09b8f313de065c48450e
11+
mmtk_julia.v0.30.5+0.x86_64-linux-gnu.tar.gz/md5/21911963c9fe46b8ce40fd1a49c3481a
12+
mmtk_julia.v0.30.5+0.x86_64-linux-gnu.tar.gz/sha512/f02821d619425336c860b8f7bd811c1df517ff031099d35c66e969c8967d7b5417cf8acde0ffc6f9004eeafc50e057ee45599ef7b4dd6ce3b833488ba56a5485

deps/mmtk_julia.mk

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## MMTK ##
22

33
# Both MMTK_MOVING and MMTK_PLAN should be specified in the Make.user file.
4-
# At this point, since we only support non-moving this is always set to 0
5-
# FIXME: change it to `?:` when introducing moving plans
6-
MMTK_MOVING := 0
4+
# FIXME: By default we do a non-moving build. We should change the default to 1
5+
# once we support moving plans.
6+
MMTK_MOVING ?= 0
77
MMTK_VARS := MMTK_PLAN=$(MMTK_PLAN) MMTK_MOVING=$(MMTK_MOVING)
88

99
ifneq ($(USE_BINARYBUILDER_MMTK_JULIA),1)
@@ -75,6 +75,25 @@ endif # MMTK_JULIA_DIR
7575
else
7676
# We are building using the BinaryBuilder version of the binding
7777

78+
# This will download all the versions of the binding that are available in the BinaryBuilder
7879
$(eval $(call bb-install,mmtk_julia,MMTK_JULIA,false))
7980

81+
# Make sure we use the right version of $MMTK_PLAN, $MMTK_MOVING and $MMTK_BUILD
82+
ifeq (${MMTK_PLAN},Immix)
83+
LIB_PATH_PLAN = immix
84+
else ifeq (${MMTK_PLAN},StickyImmix)
85+
LIB_PATH_PLAN = sticky
86+
endif
87+
88+
ifeq ($(MMTK_MOVING), 0)
89+
LIB_PATH_MOVING := non_moving
90+
else
91+
LIB_PATH_MOVING := moving
92+
endif
93+
94+
version-check-mmtk_julia: $(BUILDROOT)/usr/lib/libmmtk_julia.so
95+
96+
$(BUILDROOT)/usr/lib/libmmtk_julia.so: get-mmtk_julia
97+
@ln -sf $(BUILDROOT)/usr/lib/$(LIB_PATH_PLAN)/$(LIB_PATH_MOVING)/$(MMTK_BUILD)/libmmtk_julia.so $@
98+
8099
endif # USE_BINARYBUILDER_MMTK_JULIA

deps/mmtk_julia.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ MMTK_JULIA_BRANCH = master
22
MMTK_JULIA_SHA1 = c9e046baf3a0d52fe75d6c8b28f6afd69b045d95
33
MMTK_JULIA_GIT_URL := https://github.com/mmtk/mmtk-julia.git
44
MMTK_JULIA_TAR_URL = https://github.com/mmtk/mmtk-julia/archive/refs/tags/v0.30.4.tar.gz
5-
MMTK_JULIA_JLL_VER := 0.30.4+0
5+
MMTK_JULIA_JLL_VER := 0.30.5+0
66
MMTK_JULIA_JLL_NAME := mmtk_julia

0 commit comments

Comments
 (0)