summaryrefslogtreecommitdiff
path: root/Modules/CMakeCXXCompilerABI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeCXXCompilerABI.cpp')
-rw-r--r--Modules/CMakeCXXCompilerABI.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Modules/CMakeCXXCompilerABI.cpp b/Modules/CMakeCXXCompilerABI.cpp
new file mode 100644
index 000000000..c9b0440b8
--- /dev/null
+++ b/Modules/CMakeCXXCompilerABI.cpp
@@ -0,0 +1,20 @@
+#ifndef __cplusplus
+# error "A C compiler has been selected for C++."
+#endif
+
+/*--------------------------------------------------------------------------*/
+
+#include "CMakeCompilerABI.h"
+
+/*--------------------------------------------------------------------------*/
+
+int main(int argc, char* argv[])
+{
+ int require = 0;
+ require += info_sizeof_dptr[argc];
+#if defined(ABI_ID)
+ require += info_abi[argc];
+#endif
+ (void)argv;
+ return require;
+}