diff options
author | Mario Topf <mario.topf@unity3d.com> | 2021-01-21 14:49:27 +0300 |
---|---|---|
committer | Mario Topf <mario.topf@unity3d.com> | 2021-01-21 14:49:27 +0300 |
commit | e5ec73eff3e319313a073aba53fcc4d0ccd1088a (patch) | |
tree | 1f35ba6e6a39b62f9dc6ae03c923282f0dca3bb7 | |
parent | 16a11ba8943d867693a4b59806b597f98040577a (diff) |
Add support for QNX
These adaptions are needed to make the il2cpp branch platform/hmi/qnx-evaluation produce output for all 4 target architectures: Intel x86+x86_64,arm32 and arm64.
-rw-r--r-- | include/private/gcconfig.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 242f0a0a..d73f5f33 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -106,7 +106,17 @@ EXTERN_C_BEGIN /* And one for QNX: */ # if defined(__QNX__) -# define I386 +# if defined(__arm__) || defined(__ARM__) +# define ARM32 +# elif defined(__aarch64__) +# define AARCH64 +# elif defined(__amd64) || defined(__X86_64__) +# define X86_64 +# elif defined(__X86__) +# define I386 +# else +# error Unknown QNX target architecture detected. +# endif # define OS_TYPE "QNX" # define SA_RESTART 0 # define HEURISTIC1 @@ -3022,7 +3032,7 @@ EXTERN_C_BEGIN #if defined(SVR4) || defined(LINUX) || defined(IRIX5) || defined(HPUX) \ || defined(OPENBSD) || defined(NETBSD) || defined(FREEBSD) \ || defined(DGUX) || defined(BSD) || defined(HAIKU) || defined(HURD) \ - || defined(AIX) || defined(DARWIN) || defined(OSF1) + || defined(AIX) || defined(DARWIN) || defined(OSF1) || defined(__QNX__) # define UNIX_LIKE /* Basic Unix-like system calls work. */ #endif |