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

Reply via email to