CMakeCXXCompilerABI.cpp 454 B

123456789101112131415161718192021
  1. #ifndef __cplusplus
  2. # error "A C compiler has been selected for C++."
  3. #endif
  4. #include "CMakeCompilerABI.h"
  5. int main(int argc, char* argv[])
  6. {
  7. int require = 0;
  8. require += info_sizeof_dptr[argc];
  9. require += info_byte_order_big_endian[argc];
  10. require += info_byte_order_little_endian[argc];
  11. #if defined(ABI_ID)
  12. require += info_abi[argc];
  13. #endif
  14. #if defined(ARCHITECTURE_ID)
  15. require += info_arch[argc];
  16. #endif
  17. (void)argv;
  18. return require;
  19. }