diff options
Diffstat (limited to 'share/cmake-3.22/Modules/CMakeOBJCXXCompilerABI.mm')
-rw-r--r-- | share/cmake-3.22/Modules/CMakeOBJCXXCompilerABI.mm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/share/cmake-3.22/Modules/CMakeOBJCXXCompilerABI.mm b/share/cmake-3.22/Modules/CMakeOBJCXXCompilerABI.mm new file mode 100644 index 0000000..7b9fefc --- /dev/null +++ b/share/cmake-3.22/Modules/CMakeOBJCXXCompilerABI.mm @@ -0,0 +1,22 @@ +#ifndef __cplusplus +# error "A C compiler has been selected for Objective-C++." +#endif + +/*--------------------------------------------------------------------------*/ + +#include "CMakeCompilerABI.h" + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char *argv[]) +{ + int require = 0; + require += info_sizeof_dptr[argc]; + require += info_byte_order_big_endian[argc]; + require += info_byte_order_little_endian[argc]; +#if defined(ABI_ID) + require += info_abi[argc]; +#endif + (void)argv; + return require; +} |