Skip to content

Commit 3b3b735

Browse files
committed
Minor Makefile fix
1 parent 73e9c84 commit 3b3b735

File tree

3 files changed

+457
-171
lines changed

3 files changed

+457
-171
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ CURR_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
88
PKG_CONFIG_LIBDIR=
99
PKG_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")
1518
endif
16-
17-
MMTK_JULIA_DIR := $(CURR_PATH)
19+
endif
1820

1921
PROJECT_DIRS := JULIA_PATH=$(JULIA_PATH) MMTK_JULIA_DIR=$(MMTK_JULIA_DIR)
2022
MMTK_VARS := MMTK_PLAN=$(MMTK_PLAN) MMTK_MOVING=$(MMTK_MOVING)

0 commit comments

Comments
 (0)