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))))
8
8
PKG_CONFIG_LIBDIR =
9
9
PKG_CONFIG_PATH =
10
10
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},)
14
17
$(error "JULIA_PATH must be set to generate Rust bindings")
15
18
endif
16
-
17
- MMTK_JULIA_DIR := $(CURR_PATH )
19
+ endif
18
20
19
21
PROJECT_DIRS := JULIA_PATH=$(JULIA_PATH ) MMTK_JULIA_DIR=$(MMTK_JULIA_DIR )
20
22
MMTK_VARS := MMTK_PLAN=$(MMTK_PLAN ) MMTK_MOVING=$(MMTK_MOVING )
You can’t perform that action at this time.
0 commit comments