[clang] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode" linking. (PR #123922)

Amit Kumar Pandey via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 01:29:05 PST 2025


================
@@ -70,6 +70,10 @@ def err_drv_no_rocm_device_lib : Error<
   "cannot find ROCm device library%select{| for %1| for ABI version %1}0; provide its path via "
   "'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build "
   "without ROCm device library">;
+def err_drv_no_asan_rt_lib
+    : Error<"AMDGPU address sanitizer runtime library (asanrtl) is not found. "
+            "Please install ROCm device library which supports address "
+            "sanitizer">;
----------------
ampandey-1995 wrote:

Thanks, @arsenm . We discussed internally and now removing the ```asanrtl bitcode is not found``` diagnostic. 

Hi @arsenm, @yxsamliu, @b-sumner , should I edit the lit test(https://github.com/llvm/llvm-project/blob/bb518655127ad49e527bbc2a57a5fd8a3f9f0495/clang/test/Driver/hip-sanitize-options.hip#L63) with generic diagnostic or remove it also?

https://github.com/llvm/llvm-project/pull/123922


More information about the cfe-commits mailing list