Skip to content

Commit

Permalink
CMake: use debug build when cross-compiling
Browse files Browse the repository at this point in the history
This is a quick & dirty fix assuming that when cross-compiling,
we do that with intention to debug.

It'd be much better to detect user wants a debug build from `./configure`
arguments but this is left for later.
  • Loading branch information
janvrany committed Dec 15, 2023
1 parent 6fd19af commit c2b4f25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions closed/OpenJ9.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,13 @@ ifeq (true,$(OPENJ9_ENABLE_CMAKE))
endif
endif # windows

# Temporary hack for development...
ifneq ($(OPENJDK_BUILD_CPU),$(OPENJDK_TARGET_CPU))
CMAKE_ARGS += \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
endif

ifneq (,$(CCACHE))
# openjdk makefiles add a bunch of environemnt variables to the ccache command.
# CMake will not parse this properly, so we wrap the whole thing in the env command.
Expand Down

0 comments on commit c2b4f25

Please sign in to comment.