[llvm] [lit] Preload ASan runtime for ld64 tests on arm64 too (PR #227873)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 09:55:05 PDT 2026
https://github.com/thetruestblue updated https://github.com/llvm/llvm-project/pull/227873
>From e6266b3bb6968d684f80d230b2dab36f5f054685 Mon Sep 17 00:00:00 2001
From: blueg <bgaston2 at apple.com>
Date: Wed, 30 Sep 2026 13:40:39 -0700
Subject: [PATCH] [lit] Preload ASan runtime for ld64 tests on arm64 too
get_asan_rtlib() only preloaded the runtime on x86 hosts. On arm64 this silently skipped the preload, so ASan-instrumented libLTO.dylib aborts when ld64 dlopen()s it.
rdar://188411900
---
llvm/test/lit.cfg.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 01fe48d86ed27..f988ac31eccfc 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -121,11 +121,7 @@
def get_asan_rtlib():
- if (
- not "Address" in config.llvm_use_sanitizer
- or not "Darwin" in config.target_os
- or not "x86" in config.host_triple
- ):
+ if not "Address" in config.llvm_use_sanitizer or not "Darwin" in config.target_os:
return ""
try:
import glob
More information about the llvm-commits
mailing list