Skip to content

Commit 7c7cf3e

Browse files
committed
Enable building bootcycle-images
Signed-off-by: Keith W. Campbell <[email protected]>
1 parent 036d196 commit 7c7cf3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

closed/OpenJ9.gmk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,14 @@ run-preprocessors-j9 : \
248248
$(OPENJ9_VM_BUILD_DIR)/compiler/jit.version \
249249
$(OPENJ9_VM_BUILD_DIR)/include/openj9_version_info.h
250250

251+
# Note that $(OUTPUTDIR) is different when building bootcycle-images,
252+
# so refer to toolchain.cmake in the same directory as $(SPEC).
253+
251254
CMAKE_ARGS := \
252255
-C $(OPENJ9_TOPDIR)/runtime/cmake/caches/$(patsubst %_cross,%,$(OPENJ9_BUILDSPEC)).cmake \
253256
-DBOOT_JDK="$(BOOT_JDK)" \
254257
-DBUILD_ID=$(BUILD_ID) \
255-
-DCMAKE_TOOLCHAIN_FILE="$(OUTPUTDIR)/toolchain.cmake" \
258+
-DCMAKE_TOOLCHAIN_FILE="$(dir $(SPEC))toolchain.cmake" \
256259
-DJ9VM_OMR_DIR="$(OPENJ9OMR_TOPDIR)" \
257260
-DJAVA_SPEC_VERSION=$(VERSION_FEATURE) \
258261
-DOMR_DDR=$(OPENJ9_ENABLE_DDR) \

0 commit comments

Comments
 (0)