Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build/osx/arm64_osx.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
##
## arm64 OSX (Apple Silicon) Makefile
## Tested on Apple M4
## Use make
##
TargetCPU :=arm64
OS :=osx
# -include: modern macOS g++ is clang++/libc++, which lacks abi::__forced_unwind
# that the OSX sources expect from libstdc++-era toolchains.
CXXFLAGS := -O3 -fPIC -pedantic -arch arm64 -include forced_unwind_stub.h

# Standard part

include common.mk
6 changes: 6 additions & 0 deletions build/osx/forced_unwind_stub.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Apple libc++ has no abi::__forced_unwind (Linux libstdc++ pthread cancel).
// Force-included by arm64_osx.mk so upstream snap_threads.cpp compiles unchanged.
#pragma once
namespace __cxxabiv1 {
struct __forced_unwind {};
}