summaryrefslogtreecommitdiff
path: root/darwin.cf
diff options
context:
space:
mode:
authorWeijia <contact@weijia.wang>2022-12-22 20:44:16 +0100
committerWeijia <contact@weijia.wang>2022-12-22 20:44:16 +0100
commit8d88c559b177e832b581c8ac0aa383b6cf79e0d0 (patch)
treef06887f59e8129de9e94059a0cd7bed76f3bfb06 /darwin.cf
parent90b66dc73deb9ef303690370395cf831425547c7 (diff)
Add support for aarch64-darwin
Diffstat (limited to 'darwin.cf')
-rw-r--r--darwin.cf11
1 files changed, 10 insertions, 1 deletions
diff --git a/darwin.cf b/darwin.cf
index f7514fe..3a53782 100644
--- a/darwin.cf
+++ b/darwin.cf
@@ -230,7 +230,6 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
# define ByteOrder X_LITTLE_ENDIAN
#endif /* i386DarwinArchitecture */
-
#ifdef x86_64DarwinArchitecture
# define DarwinMachineDefines -D__x86_64__
# if HasGcc3
@@ -241,6 +240,16 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
# define ByteOrder X_LITTLE_ENDIAN
#endif /* x86_64DarwinArchitecture */
+#ifdef aarch64DarwinArchitecture
+# define DarwinMachineDefines -D__aarch64__
+# if HasGcc3
+# define OptimizedCDebugFlags -Os
+# else
+# define OptimizedCDebugFlags -O2 -fno-strength-reduce
+# endif
+# define ByteOrder X_LITTLE_ENDIAN
+#endif /* aarch64DarwinArchitecture */
+
#if OSMajorVersion < 7
# define DarwinLocaleDefines -DX_LOCALE
#else