[clang] [Driver][test] Use -fuse-ld=ld in fuchsia.c -rtlib=none test (PR #245158)
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 00:42:12 PST 2026
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/245158
-fuse-ld=lld checks that ld.lld is executable and fails on builders configured without lld (checkout_lld=False). Use -fuse-ld=ld like the rest of fuchsia.c.
>From 82f541ce1d85c00f97f983fc1bb49bfed338bc69 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Mon, 23 Nov 2026 08:29:54 +0000
Subject: [PATCH] [Driver][test] Use -fuse-ld=ld in fuchsia.c -rtlib=none test
-fuse-ld=lld checks that ld.lld is executable and fails on builders
configured without lld (checkout_lld=False). Use -fuse-ld=ld like the
rest of fuchsia.c.
---
clang/test/Driver/fuchsia.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/clang/test/Driver/fuchsia.c b/clang/test/Driver/fuchsia.c
index 550a0600dc6e8..11705e9d344bc 100644
--- a/clang/test/Driver/fuchsia.c
+++ b/clang/test/Driver/fuchsia.c
@@ -94,14 +94,13 @@
// RUN: | FileCheck %s -check-prefix=CHECK-RTLIB
// CHECK-RTLIB: error: unsupported runtime library 'libgcc' for platform 'Fuchsia'
-// RUN: %clang -### %s --target=x86_64-unknown-fuchsia -rtlib=none -fuse-ld=lld 2>&1 \
+// RUN: %clang -### %s --target=x86_64-unknown-fuchsia -rtlib=none -fuse-ld=ld 2>&1 \
// RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \
// RUN: | FileCheck %s -check-prefix=CHECK-RTLIB-NONE
// CHECK-RTLIB-NONE: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
// CHECK-RTLIB-NONE: "{{.*}}ld.lld{{(.exe)?}}"
// CHECK-RTLIB-NONE-NOT: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}x86_64-unknown-fuchsia{{/|\\\\}}libclang_rt.builtins.a"
// CHECK-RTLIB-NONE-SAME: "-lc"
-// CHECK-RTLIB-NONE-NOT: "libclang_rt"
// RUN: %clang -### %s --target=x86_64-unknown-fuchsia -static -fuse-ld=ld 2>&1 \
// RUN: | FileCheck %s -check-prefix=CHECK-STATIC
More information about the cfe-commits
mailing list