File tree Expand file tree Collapse file tree 3 files changed +457
-171
lines changed Expand file tree Collapse file tree 3 files changed +457
-171
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ CURR_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
88PKG_CONFIG_LIBDIR =
99PKG_CONFIG_PATH =
1010
11- # If the Julia directory doesn't exist throw an error
12- # since we need it to generate the bindgen bindings
13- ifeq (${JULIA_PATH},)
11+ MMTK_JULIA_DIR := $(CURR_PATH )
12+
13+ # If we need to generate the FFI bindings with bindgen
14+ # and the Julia directory doesn't exist throw an error
15+ ifeq ("$(wildcard $(MMTK_JULIA_DIR ) /mmtk/src/julia_types.rs) ","")
16+ ifeq (${JULIA_PATH},)
1417$(error "JULIA_PATH must be set to generate Rust bindings")
1518endif
16-
17- MMTK_JULIA_DIR := $(CURR_PATH )
19+ endif
1820
1921PROJECT_DIRS := JULIA_PATH=$(JULIA_PATH ) MMTK_JULIA_DIR=$(MMTK_JULIA_DIR )
2022MMTK_VARS := MMTK_PLAN=$(MMTK_PLAN ) MMTK_MOVING=$(MMTK_MOVING )
You can’t perform that action at this time.
0 commit comments