• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Include the correct ffitarget.h automatically. This helps us create prefixes
2  * with multi-lib Linux and OSX/iOS universal builds. To avoid listing all
3  * possible architectures here, we try the configured target arch first and then
4  * include the most common multilib/universal setups in the #elif ladder */
5 #ifdef __arm__
6 #include "ffitarget-arm.h"
7 #elif defined(__i386__) || defined(_M_IX86)
8 #include "ffitarget-x86.h"
9 #elif defined(__x86_64__) || defined(_M_X64)
10 #include "ffitarget-x86_64.h"
11 #elif defined(__arm__) || defined(_M_ARM)
12 #include "ffitarget-arm.h"
13 #elif defined(__aarch64__) || defined(_M_ARM64)
14 #include "ffitarget-aarch64.h"
15 #elif defined(__powerpc__) || defined(_M_PPC)
16 #include "ffitarget-powerpc.h"
17 #elif defined(__powerpc64__)
18 #include "ffitarget-powerpc64.h"
19 #else
20 #error "Unsupported Architecture"
21 #endif
22