File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
#
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.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -620,6 +620,13 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_CORE],
620
620
# All other toolchains use the compiler to link.
621
621
LD="$CC"
622
622
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
623
630
fi
624
631
AC_SUBST ( LD )
625
632
# FIXME: it should be CXXLD, according to standard (cf CXXCPP)
You can’t perform that action at this time.
0 commit comments