Skip to content

Commit

Permalink
8328079: JDK-8326583 broke ccache compilation
Browse files Browse the repository at this point in the history
Reviewed-by: erikj, jwaters
  • Loading branch information
magicus committed Mar 13, 2024
1 parent 7e05a70 commit 4d64467
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions make/common/NativeCompilation.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -303,36 +303,36 @@ endef
# Setup the toolchain variables
define SetupToolchain
ifeq ($$($1_TARGET_TYPE), BUILD)
$$(call SetIfEmpty, $1_CC, $(BUILD_CC))
$$(call SetIfEmpty, $1_CXX, $(BUILD_CXX))
$$(call SetIfEmpty, $1_AR, $(BUILD_AR))
$$(call SetIfEmpty, $1_LIB, $(BUILD_LIB))
$$(call SetIfEmpty, $1_AS, $(BUILD_AS))
$$(call SetIfEmpty, $1_OBJCOPY, $(BUILD_OBJCOPY))
$$(call SetIfEmpty, $1_STRIP, $(BUILD_STRIP))
$$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $(BUILD_SYSROOT_CFLAGS))
$$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $(BUILD_SYSROOT_LDFLAGS))
$$(call SetIfEmpty, $1_CC, $$(BUILD_CC))
$$(call SetIfEmpty, $1_CXX, $$(BUILD_CXX))
$$(call SetIfEmpty, $1_AR, $$(BUILD_AR))
$$(call SetIfEmpty, $1_LIB, $$(BUILD_LIB))
$$(call SetIfEmpty, $1_AS, $$(BUILD_AS))
$$(call SetIfEmpty, $1_OBJCOPY, $$(BUILD_OBJCOPY))
$$(call SetIfEmpty, $1_STRIP, $$(BUILD_STRIP))
$$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $$(BUILD_SYSROOT_CFLAGS))
$$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $$(BUILD_SYSROOT_LDFLAGS))
ifeq ($$($1_LINK_TYPE), C++)
$$(call SetIfEmpty, $1_LD, $(BUILD_LDCXX))
$$(call SetIfEmpty, $1_LD, $$(BUILD_LDCXX))
else
$$(call SetIfEmpty, $1_LD, $(BUILD_LD))
$$(call SetIfEmpty, $1_LD, $$(BUILD_LD))
endif
else
$$(call SetIfEmpty, $1_CC, $(CC))
$$(call SetIfEmpty, $1_CXX, $(CXX))
$$(call SetIfEmpty, $1_AR, $(AR))
$$(call SetIfEmpty, $1_LIB, $(LIB))
$$(call SetIfEmpty, $1_AS, $(AS))
$$(call SetIfEmpty, $1_MT, $(MT))
$$(call SetIfEmpty, $1_RC, $(RC))
$$(call SetIfEmpty, $1_OBJCOPY, $(OBJCOPY))
$$(call SetIfEmpty, $1_STRIP, $(STRIP))
$$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $(SYSROOT_CFLAGS))
$$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $(SYSROOT_LDFLAGS))
$$(call SetIfEmpty, $1_CC, $$(CC))
$$(call SetIfEmpty, $1_CXX, $$(CXX))
$$(call SetIfEmpty, $1_AR, $$(AR))
$$(call SetIfEmpty, $1_LIB, $$(LIB))
$$(call SetIfEmpty, $1_AS, $$(AS))
$$(call SetIfEmpty, $1_MT, $$(MT))
$$(call SetIfEmpty, $1_RC, $$(RC))
$$(call SetIfEmpty, $1_OBJCOPY, $$(OBJCOPY))
$$(call SetIfEmpty, $1_STRIP, $$(STRIP))
$$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $$(SYSROOT_CFLAGS))
$$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $$(SYSROOT_LDFLAGS))
ifeq ($$($1_LINK_TYPE), C++)
$$(call SetIfEmpty, $1_LD, $(LDCXX))
$$(call SetIfEmpty, $1_LD, $$(LDCXX))
else
$$(call SetIfEmpty, $1_LD, $(LD))
$$(call SetIfEmpty, $1_LD, $$(LD))
endif
endif
endef
Expand Down

1 comment on commit 4d64467

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.