[llvm-branch-commits] [clang] [Clang] Add support for the `-fsanitize=concurrency` runtime (PR #225781)
Yaxun Liu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Sep 24 05:05:43 PDT 2026
================
@@ -1813,6 +1835,8 @@ collectSanitizerRuntimes(Compilation &C, const ToolChain &TC,
StaticRuntimes.push_back("ubsan_standalone");
}
}
+ if (!SanArgs.needsSharedRt() && NeedsCsanRt)
----------------
yxsamliu wrote:
CSan is only built as a static runtime, but this skips it when `-shared-libsan` is used. The instrumented program will then link without `libclang_rt.csan`. Could we always link the static CSan runtime, like DFSan, or reject this option and add a test?
https://github.com/llvm/llvm-project/pull/225781
More information about the llvm-branch-commits
mailing list