Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
/ jdk20 Public archive

Commit e15bdc5

Browse files
committed
8299789: Compilation of gtest causes build to fail if runtime libraries are in different dirs
Reviewed-by: erikj Backport-of: c8a8388aba3dc121bad04aaa123f6cd7525c3d38
1 parent 87865e0 commit e15bdc5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

make/hotspot/test/GtestImage.gmk

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -41,10 +41,22 @@ ifeq ($(call isTargetOs, windows), true)
4141
$(foreach v, $(JVM_VARIANTS), \
4242
$(eval $(call SetupCopyFiles, COPY_GTEST_MSVCR_$v, \
4343
DEST := $(TEST_IMAGE_DIR)/hotspot/gtest/$v, \
44-
FILES := $(MSVCR_DLL) $(VCRUNTIME_1_DLL) $(MSVCP_DLL), \
44+
FILES := $(MSVCR_DLL), \
4545
FLATTEN := true, \
4646
)) \
4747
$(eval TARGETS += $$(COPY_GTEST_MSVCR_$v)) \
48+
$(eval $(call SetupCopyFiles, COPY_GTEST_VCRUNTIME_1_$v, \
49+
DEST := $(TEST_IMAGE_DIR)/hotspot/gtest/$v, \
50+
FILES := $(VCRUNTIME_1_DLL), \
51+
FLATTEN := true, \
52+
)) \
53+
$(eval TARGETS += $$(COPY_GTEST_VCRUNTIME_1_$v)) \
54+
$(eval $(call SetupCopyFiles, COPY_GTEST_MSVCP_$v, \
55+
DEST := $(TEST_IMAGE_DIR)/hotspot/gtest/$v, \
56+
FILES := $(MSVCP_DLL), \
57+
FLATTEN := true, \
58+
)) \
59+
$(eval TARGETS += $$(COPY_GTEST_MSVCP_$v)) \
4860
$(if $(call equals, $(COPY_DEBUG_SYMBOLS), true), \
4961
$(eval $(call SetupCopyFiles, COPY_GTEST_PDB_$v, \
5062
SRC := $(HOTSPOT_OUTPUTDIR)/variant-$v/libjvm/gtest, \

0 commit comments

Comments
 (0)