diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-04-10 22:12:45 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-04-10 22:15:23 (GMT) |
commit | 981c7f5a5bcd4bf3c704dd28d21bfce73c69112e (patch) | |
tree | 5930f9837cddecd08fc2da358988e923843155dc /Modules | |
parent | f99771ce0a42f91f825c941cc8f0cbc4514875a7 (diff) | |
download | CMake-981c7f5a5bcd4bf3c704dd28d21bfce73c69112e.zip CMake-981c7f5a5bcd4bf3c704dd28d21bfce73c69112e.tar.gz CMake-981c7f5a5bcd4bf3c704dd28d21bfce73c69112e.tar.bz2 |
-check for the ARM ABI/EABI compiler ABI for the GNU compilers
The names are:
EABI: "ELF ARMEABI"
non-EABI: "ELF ARM"
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeCompilerABI.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/CMakeCompilerABI.h b/Modules/CMakeCompilerABI.h index 8980abb..26ae4db 100644 --- a/Modules/CMakeCompilerABI.h +++ b/Modules/CMakeCompilerABI.h @@ -17,6 +17,16 @@ const char info_sizeof_dptr[] = { # define ABI_ID "ELF N32" #elif defined(__sgi) && defined(_ABI64) # define ABI_ID "ELF 64" + +/* Check for (some) ARM ABIs. + * See e.g. http://wiki.debian.org/ArmEabiPort for some information on this. */ +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARM_EABI__) +# define ABI_ID "ELF ARMEABI" +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEB__) +# define ABI_ID "ELF ARM" +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) +# define ABI_ID "ELF ARM" + #elif defined(__ELF__) # define ABI_ID "ELF" #endif |