diff options
author | Weijia <contact@weijia.wang> | 2022-12-22 20:44:16 +0100 |
---|---|---|
committer | Weijia <contact@weijia.wang> | 2022-12-22 20:44:16 +0100 |
commit | 8d88c559b177e832b581c8ac0aa383b6cf79e0d0 (patch) | |
tree | f06887f59e8129de9e94059a0cd7bed76f3bfb06 /darwin.cf | |
parent | 90b66dc73deb9ef303690370395cf831425547c7 (diff) |
Add support for aarch64-darwin
Diffstat (limited to 'darwin.cf')
-rw-r--r-- | darwin.cf | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |