[llvm-branch-commits] [llvm] [DLCov] Origin-Tracking: Enable collecting and symbolizing stack traces (PR #143591)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 11 10:07:09 PDT 2025


================
@@ -507,6 +507,21 @@ static int dl_iterate_phdr_cb(dl_phdr_info *info, size_t size, void *arg) {
   return 0;
 }
 
+#if LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING
+#if !defined(HAVE_BACKTRACE)
+#error DebugLoc origin-tracking currently requires `backtrace()`.
+#endif
----------------
jmorse wrote:

Can this instead be a cmake check? (I've no idea how to achieve that, it just might be more convenient to developers to fail-early-fail-hard).

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


More information about the llvm-branch-commits mailing list