[clang] Correcting sanitizer-ld test to expect `-lstdc++` or `-lc++` (PR #180736)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 10 08:31:12 PST 2026
================
@@ -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++"
----------------
ilovepi wrote:
Is there a reason to prefer the loose match, over say passing `-stdlib=libc++` to the driver?
https://github.com/llvm/llvm-project/pull/180736
More information about the cfe-commits
mailing list