Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Modules/CMakeCXXCompilerABI.cpp
5009 views
1
#ifndef __cplusplus
2
# error "A C compiler has been selected for C++."
3
#endif
4
5
#include "CMakeCompilerABI.h"
6
7
int main(int argc, char* argv[])
8
{
9
int require = 0;
10
require += info_sizeof_dptr[argc];
11
require += info_byte_order_big_endian[argc];
12
require += info_byte_order_little_endian[argc];
13
#if defined(ABI_ID)
14
require += info_abi[argc];
15
#endif
16
#if defined(ARCHITECTURE_ID)
17
require += info_arch[argc];
18
#endif
19
(void)argv;
20
return require;
21
}
22
23