https://github.com/bjosv created https://github.com/llvm/llvm-project/pull/180736
#164842 introduced a new testcase which failed in the following test-builders: - [fuchsia-x86_64-linux](https://lab.llvm.org/buildbot/#/builders/11/builds/33349) - [llvm-clang-win-x-aarch](https://lab.llvm.org/buildbot/#/builders/193/builds/14309) - [llvm-clang-win-x-armv7l](https://lab.llvm.org/buildbot/#/builders/38/builds/7708) In these setups `-lc++` is expected instead of `-lstdc++`. From 4dd46dd6381378e8100dd54d8056b7e4c93b0be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= <[email protected]> Date: Tue, 10 Feb 2026 12:28:10 +0100 Subject: [PATCH] Correcting sanitizer-ld test to expect -lstdc++ or -lc++ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following test-builders triggered an issue with a new testcase from https://github.com/llvm/llvm-project/pull/164842 where `-lc++` is expected instead of `-lstdc++`: fuchsia-x86_64-linux llvm-clang-win-x-aarch llvm-clang-win-x-armv7l Signed-off-by: Björn Svensson <[email protected]> --- clang/test/Driver/sanitizer-ld.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/test/Driver/sanitizer-ld.c b/clang/test/Driver/sanitizer-ld.c index 93fb69d639350..53a138e31b801 100644 --- a/clang/test/Driver/sanitizer-ld.c +++ b/clang/test/Driver/sanitizer-ld.c @@ -1400,4 +1400,6 @@ // RUN: --sysroot=%S/Inputs/basic_linux_tree \ // RUN: | FileCheck %s --check-prefix=CHECK-FUZZER-WITH-SHARED-ASAN-ORDER // -// CHECK-FUZZER-WITH-SHARED-ASAN-ORDER: "{{.*}}libclang_rt.asan.so" "--whole-archive" "{{.*}}libclang_rt.fuzzer.a" "--no-whole-archive" "-lstdc++" +// CHECK-FUZZER-WITH-SHARED-ASAN-ORDER: "{{.*}}libclang_rt.asan.so" +// CHECK-FUZZER-WITH-SHARED-ASAN-ORDER-SAME: "--whole-archive" "{{.*}}libclang_rt.fuzzer.a" "--no-whole-archive" +// CHECK-FUZZER-WITH-SHARED-ASAN-ORDER-SAME: "-l{{(std)?}}c++" _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
