[compiler-rt] [HWASan] symbolize stack overflows (PR #95308)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 16:50:44 PDT 2024
================
@@ -0,0 +1,29 @@
+// RUN: %clang_hwasan -Wl,--build-id -g %s -o %t
----------------
ilovepi wrote:
I'm not seeing why it wouldn't work w/ `%t` as the directory? I'd think that `hwasan_symbolize --symbols %t --index` would work just as well, right? same w/ the `%run` bits.
There's also always `cd` if you need things in the CWD. Downside is that you can't just copy paste commands from lit anymore w/o using `cd` yourself, but I know LLD tests use this pattern frequently.
While its deprecated there is also `%T`. That has issues w/ races though, so even then I'm not terribly sure you want to use it, but you don't need `$(dirname %t)` calls throughout.
https://github.com/llvm/llvm-project/pull/95308
More information about the llvm-commits
mailing list