From 28776d501cad38d56b8e05ba1ec5044c88901d7a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 23 May 2023 16:04:24 +0200 Subject: [PATCH] [Driver] Try to fix linux-ld.c test with DEFAULT_LINKER set (NFC) The test fails on the clang-ppc64le-rhel build bot, which has DEFAULT_LINKER set and an ld.lld binary in the LLVM build directory. --- clang/test/Driver/linux-ld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index 18ad0b9..287750a 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -1791,7 +1791,7 @@ // CHECK-LD-GENTOO-X32: "-lc" // CHECK-LD-GENTOO-X32: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" -// RUN: %clang -### %s -no-pie 2>&1 \ +// RUN: %clang -### %s -no-pie -fuse-ld=ld 2>&1 \ // RUN: --target=x86_64-unknown-linux-gnu \ // RUN: --gcc-toolchain="%S/Inputs/rhel_7_tree/opt/rh/devtoolset-7/root/usr" \ // RUN: --sysroot="%S/Inputs/rhel_7_tree/opt/rh/devtoolset-7/root" \ -- 2.7.4