-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding makefile support for building with mmtk
- Loading branch information
Showing
8 changed files
with
120 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
deps/checksums/mmtk_julia-05fb25cb03dfdf082e5023dd11bbcbb23a2b75d8.tar.gz/md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4b2bc06421faf022ee6bda09a7c87f7a |
1 change: 1 addition & 0 deletions
1
deps/checksums/mmtk_julia-05fb25cb03dfdf082e5023dd11bbcbb23a2b75d8.tar.gz/sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1d9d500239fa9f3eb60404458fa5fe4e31d0dd4defbbf32ce84769b33a6c21e676a48be4f3b6dd3e114f367a2bd278c5ff03bb25f0617fa0101f470701fd2b8a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
## MMTK ## | ||
|
||
# Both MMTK_MOVING and MMTK_PLAN should be specified in the Make.user file. | ||
# At this point, since we only support non-moving this is always set to 0 | ||
# FIXME: change it to `?:` when introducing moving plans | ||
MMTK_MOVING := 0 | ||
MMTK_VARS := MMTK_PLAN=$(MMTK_PLAN) MMTK_MOVING=$(MMTK_MOVING) | ||
|
||
# Download the binding, build it from source | ||
ifeq (${MMTK_JULIA_DIR},$(BUILDROOT)/usr/lib/mmtk_julia) | ||
$(eval $(call git-external,mmtk_julia,MMTK_JULIA,,,$(BUILDDIR))) | ||
|
||
MMTK_JULIA_DIR=$(BUILDROOT)/deps/$(BUILDDIR)/$(MMTK_JULIA_SRC_DIR) | ||
MMTK_JULIA_LIB_PATH=$(MMTK_JULIA_DIR)/mmtk/target/$(MMTK_BUILD) | ||
PROJECT_DIRS := JULIA_PATH=$(JULIAHOME) JULIA_BUILDROOT=$(BUILDROOT) MMTK_JULIA_DIR=$(MMTK_JULIA_DIR) | ||
|
||
$(BUILDDIR)/$(MMTK_JULIA_SRC_DIR)/build-compiled: $(BUILDROOT)/usr/lib/libmmtk_julia.so | ||
@echo 1 > $@ | ||
|
||
# NB: use the absolute dir when creating the symlink | ||
$(BUILDROOT)/usr/lib/libmmtk_julia.so: $(MMTK_JULIA_LIB_PATH)/libmmtk_julia.so | ||
@ln -sf $(MMTK_JULIA_LIB_PATH)/libmmtk_julia.so $@ | ||
|
||
$(MMTK_JULIA_LIB_PATH)/libmmtk_julia.so: $(BUILDDIR)/$(MMTK_JULIA_SRC_DIR)/source-extracted | ||
@$(PROJECT_DIRS) $(MMTK_VARS) $(MAKE) -C $(MMTK_JULIA_DIR) $(MMTK_BUILD) | ||
|
||
get-mmtk_julia: $(MMTK_JULIA_SRC_FILE) | ||
extract-mmtk_julia: $(BUILDDIR)/$(MMTK_JULIA_SRC_DIR)/source-extracted | ||
configure-mmtk_julia: extract-mmtk_julia | ||
compile-mmtk_julia: $(BUILDROOT)/usr/lib/libmmtk_julia.so | ||
fastcheck-mmtk_julia: #none | ||
check-mmtk_julia: compile-mmtk_julia | ||
|
||
$(eval $(call symlink_install,mmtk_julia,$$(MMTK_JULIA_SRC_DIR),$$(BUILDROOT)/usr/lib)) | ||
|
||
# In this case, there is a custom version of the binding in MMTK_JULIA_DIR | ||
# Build it and symlink libmmtk_julia.so file into $(BUILDROOT)/usr/lib | ||
else | ||
|
||
PROJECT_DIRS := JULIA_PATH=$(JULIAHOME) JULIA_BUILDROOT=$(BUILDROOT) MMTK_JULIA_DIR=$(MMTK_JULIA_DIR) | ||
MMTK_JULIA_LIB_PATH=$(MMTK_JULIA_DIR)/mmtk/target/$(MMTK_BUILD) | ||
|
||
install-mmtk_julia: compile-mmtk_julia $(build_prefix)/manifest/mmtk_julia | ||
|
||
compile-mmtk_julia: $(BUILDROOT)/usr/lib/libmmtk_julia.so | ||
|
||
version-check-mmtk_julia: $(MMTK_JULIA_DIR)/mmtk/target/$(MMTK_BUILD)/libmmtk_julia.so | ||
|
||
# NB: This will NOT run `cargo build` if there are changes in the Rust source files | ||
# inside the binding repo. However the target below should remake the symlink if there | ||
# are changes in the libmmtk_julia.so from the custom MMTK_JULIA_DIR folder | ||
$(BUILDROOT)/usr/lib/libmmtk_julia.so: $(MMTK_JULIA_DIR)/mmtk/target/$(MMTK_BUILD)/libmmtk_julia.so | ||
@ln -sf $(MMTK_JULIA_DIR)/mmtk/target/$(MMTK_BUILD)/libmmtk_julia.so $@ | ||
|
||
$(MMTK_JULIA_DIR)/mmtk/target/$(MMTK_BUILD)/libmmtk_julia.so: | ||
@$(PROJECT_DIRS) $(MMTK_VARS) $(MAKE) -C $(MMTK_JULIA_DIR) $(MMTK_BUILD) | ||
|
||
MMTK_JULIA_VER := mmtk_julia_custom | ||
|
||
UNINSTALL_mmtk_julia := $(MMTK_JULIA_VER) manual_mmtk_julia | ||
|
||
define manual_mmtk_julia | ||
uninstall-mmtk_julia: | ||
-rm -f $(build_prefix)/manifest/mmtk_julia | ||
-rm -f $(BUILDROOT)/usr/lib/libmmtk_julia.so | ||
endef | ||
|
||
$(build_prefix)/manifest/mmtk_julia: $(BUILDROOT)/usr/lib/libmmtk_julia.so | ||
@echo $(UNINSTALL_mmtk_julia) > $@ | ||
|
||
endif # MMTK_JULIA_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MMTK_JULIA_BRANCH = master | ||
MMTK_JULIA_SHA1 = 05fb25cb03dfdf082e5023dd11bbcbb23a2b75d8 | ||
MMTK_JULIA_GIT_URL := https://github.com/mmtk/mmtk-julia.git | ||
MMTK_JULIA_TAR_URL = https://github.com/mmtk/mmtk-julia/archive/refs/tags/v0.29.0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters