summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-03-23 23:28:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-03-23 23:28:47 -0700
commit500155609621d8021d73291d2369b28919386a69 (patch)
tree99dc92b133ac6a8edc96b30f3ade1a66c0b288fa /configure
parentcc966e1590332779e66d067c12ef79291dceafae (diff)
downloadtxr-500155609621d8021d73291d2369b28919386a69.tar.gz
txr-500155609621d8021d73291d2369b28919386a69.tar.bz2
txr-500155609621d8021d73291d2369b28919386a69.zip
build: port to Apple M1.
* configure (lit_align): Also don't calculate lit_align as 2 on Darwin/arm64; that is a hack needed on 32 bit x86 Mac OS. * jmp.S: Define DEFUN for Arm64 on Darwin. We have to use %% as the statement separator; semicolons are comments. Use the same __aarch64__ code for __arm64__. We just need some Apple specific tidbits before and after.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index de63be92..4739ccd4 100755
--- a/configure
+++ b/configure
@@ -1496,7 +1496,7 @@ if [ -z "$lit_align" ] ; then
exit 1
fi
- if [ -n "$darwin_target" ] ; then
+ if [ -n "$darwin_target" ] && [ "$(arch)" = "i386" ] ; then
lit_align=2
else
lit_align=$SIZEOF_WCHAR_T