[all-commits] [llvm/llvm-project] fe1301: [libunwind] Tweak tests for musl support. (#85097)

Alastair Houghton via All-commits all-commits at lists.llvm.org
Mon Jun 10 07:21:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe1301b5d846e96655ae6981789f677de6c7572d
      https://github.com/llvm/llvm-project/commit/fe1301b5d846e96655ae6981789f677de6c7572d
  Author: Alastair Houghton <ahoughton at apple.com>
  Date:   2024-06-10 (Mon, 10 Jun 2024)

  Changed paths:
    M libunwind/test/floatregister.pass.cpp
    M libunwind/test/forceunwind.pass.cpp
    M libunwind/test/signal_unwind.pass.cpp
    M libunwind/test/unwind_leaffunction.pass.cpp

  Log Message:
  -----------
  [libunwind] Tweak tests for musl support. (#85097)

We can't use `dladdr()` in the tests, because when we're statically
linking with musl that function is a no-op.

Additionally, because musl disables emission of unwind information in
its build, and because its signal trampolines don't include unwind
information, tests that involve unwinding through a signal handler won't
work and need to be disabled for musl.

rdar://123436891



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list