Skip to content

Commit

Permalink
macOS: workaround a dyld/libunwind deadlock issue since 12.1
Browse files Browse the repository at this point in the history
Apple reintroduced the old bug that we previously worked around in
fad04d3 with a similar patch to this.

This is needed anywhere that we may attempt to stop threads.

Fixes #43578

(cherry picked from commit 2939272)
  • Loading branch information
vtjnash authored and KristofferC committed Dec 21, 2022
1 parent 0e5cdc7 commit 975bd6b
Show file tree
Hide file tree
Showing 5 changed files with 610 additions and 47 deletions.
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ endif
CLANG_LDFLAGS := $(LLVM_LDFLAGS)
ifeq ($(OS), Darwin)
CLANG_LDFLAGS += -Wl,-undefined,dynamic_lookup
OSLIBS += $(SRCDIR)/mach_dyld_atfork.tbd
endif

COMMON_LIBPATHS := -L$(build_libdir) -L$(build_shlibdir)
Expand Down
Loading

0 comments on commit 975bd6b

Please sign in to comment.