summaryrefslogtreecommitdiff
path: root/Modules/CMakeISPCCompilerABI.ispc
blob: e23abcea6a21900e6cb2e48b50cfca4195680e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

export void ispcCompilerABI() {

#if defined(__GNU__) && defined(__ELF__) && defined(__ARM_EABI__)
  print("INFO:abi[ELF ARMEABI]");
  static char const info_abi[] =
#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEB__)
  print("INFO:abi[ELF ARM]");
#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__)
  print("INFO:abi[ELF ARM]");

#elif defined(__linux__) && defined(__ELF__) && defined(__amd64__) &&         \
  defined(__ILP32__)
print("INFO:abi[ELF X32]");

#elif defined(__ELF__)
print("INFO:abi[ELF]");
#endif

}