[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
================
@@ -9809,7 +9809,7 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
// Don't forward sanitizer arguments if the toolchain doesn't support it.
// Without this check using it on the host would result in linker errors.
if (requiresUBSanRT(ID) && !ToolChainHasRT(TC, "ubsan_minimal") &&
- !ToolChainHasRT(TC, "ubsan_standalone"))
+ !ToolChainHasRT(TC, "ubsan_standalone") && !ToolChainHasRT(TC, "csan"))
----------------
yxsamliu wrote:
This checks whether any UBSan or CSan runtime exists, not whether the requested runtime exists. For example, UBSan may exist while CSan is missing, but `-fsanitize=concurrency` will still be forwarded. Could we check the sanitizer value and its matching runtime?
https://github.com/llvm/llvm-project/pull/225781
More information about the llvm-branch-commits
mailing list