aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2021-09-19 17:58:24 +0200
committerMike Pall <mike>2021-09-19 17:58:24 +0200
commit27ee3bcd79b12a0c71f00427ee1a2e486c684486 (patch)
treeee61fbcf4ed793d428930aeabc32bd947cfda511
parentbb0f24101565d34ea8b70fdec4dd3f3b35a70e7b (diff)
downloadluajit-27ee3bcd79b12a0c71f00427ee1a2e486c684486.tar.gz
luajit-27ee3bcd79b12a0c71f00427ee1a2e486c684486.tar.bz2
luajit-27ee3bcd79b12a0c71f00427ee1a2e486c684486.zip
OSX/ARM64: Disable external unwinding for now.
This reduces functionality, e.g. no handling of on-trace errors. Someone with very deep knowledge about macOS and MACH-O/DWARF stack unwinding internals is needed to fix this. See issue #698.
-rw-r--r--src/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 2538503f..4650c3e0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -320,7 +320,10 @@ ifeq (Darwin,$(TARGET_SYS))
320 $(error missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY) 320 $(error missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY)
321 endif 321 endif
322 TARGET_STRIP+= -x 322 TARGET_STRIP+= -x
323 TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL 323 # Ext. unwinding is broken on OSX/ARM64 until someone finds a fix. See #698.
324 ifneq (arm64,$(TARGET_LJARCH))
325 TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL
326 endif
324 TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC 327 TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC
325 TARGET_DYNXLDOPTS= 328 TARGET_DYNXLDOPTS=
326 TARGET_XSHLDFLAGS+= -install_name $(TARGET_DYLIBPATH) -compatibility_version $(MAJVER).$(MINVER) -current_version $(MAJVER).$(MINVER).$(RELVER) 329 TARGET_XSHLDFLAGS+= -install_name $(TARGET_DYLIBPATH) -compatibility_version $(MAJVER).$(MINVER) -current_version $(MAJVER).$(MINVER).$(RELVER)