Skip to content

Commit 7460a0a

Browse files
committed
8348392: Make claims "other matches are possible" even when that is not true
Reviewed-by: erikj
1 parent 5cc690d commit 7460a0a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

make/InitSupport.gmk

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, 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
@@ -211,13 +211,15 @@ ifeq ($(HAS_SPEC), )
211211
$$(if $$(findstring $$(CONF), $$(var)), $$(var))))
212212
endif
213213
ifneq ($$(filter $$(CONF), $$(matching_confs)), )
214+
ifneq ($$(word 2, $$(matching_confs)), )
215+
# Don't repeat this output on make restarts caused by including
216+
# generated files.
217+
ifeq ($$(MAKE_RESTARTS), )
218+
$$(info Using exact match for CONF=$$(CONF) (other matches are possible))
219+
endif
220+
endif
214221
# If we found an exact match, use that
215222
matching_confs := $$(CONF)
216-
# Don't repeat this output on make restarts caused by including
217-
# generated files.
218-
ifeq ($$(MAKE_RESTARTS), )
219-
$$(info Using exact match for CONF=$$(CONF) (other matches are possible))
220-
endif
221223
endif
222224
endif
223225
ifeq ($$(matching_confs), )

0 commit comments

Comments
 (0)