File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 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
@@ -620,6 +620,13 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_CORE],
620620 # All other toolchains use the compiler to link.
621621 LD="$CC"
622622 LDCXX="$CXX"
623+ # Force use of lld, since that is what we expect when setting flags later on
624+ if test "x$TOOLCHAIN_TYPE" = xclang; then
625+ if test "x$OPENJDK_BUILD_OS" != "xmacosx"; then
626+ LD="$LD -fuse-ld=lld"
627+ LDCXX="$LDCXX -fuse-ld=lld"
628+ fi
629+ fi
623630 fi
624631 AC_SUBST ( LD )
625632 # FIXME: it should be CXXLD, according to standard (cf CXXCPP)
You can’t perform that action at this time.
0 commit comments