================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits