2 # error "An Objective-C++ compiler has been selected for Objective-C."
5 @CMAKE_OBJC_COMPILER_ID_CONTENT@
7 /* Construct the string literal in pieces to prevent the source from
8 getting matched. Store it in a pointer rather than an array
9 because some compilers will just produce instructions to fill the
10 array rather than assigning a pointer to a static array. */
11 char const* info_compiler
= "INFO" ":" "compiler[" COMPILER_ID
"]";
13 char const* info_simulate
= "INFO" ":" "simulate[" SIMULATE_ID
"]";
17 char const* qnxnto
= "INFO" ":" "qnxnto[]";
20 @CMAKE_OBJC_COMPILER_ID_PLATFORM_CONTENT@
21 @CMAKE_OBJC_COMPILER_ID_ERROR_FOR_TEST@
23 #if !defined(__STDC__)
24 # if (defined(_MSC_VER) && !defined(__clang__)) \
25 ||
(defined(__ibmxl__
) ||
defined(__IBMC__
))
26 # define C_VERSION "90"
30 #elif __STDC_VERSION__ > 201710L
31 # define C_VERSION "23"
32 #elif __STDC_VERSION__ >= 201710L
33 # define C_VERSION "17"
34 #elif __STDC_VERSION__ >= 201000L
35 # define C_VERSION "11"
36 #elif __STDC_VERSION__ >= 199901L
37 # define C_VERSION "99"
39 # define C_VERSION "90"
41 const char* info_language_standard_default
=
42 "INFO" ":" "standard_default[" C_VERSION
"]";
44 const char* info_language_extensions_default
= "INFO" ":" "extensions_default["
45 #if (defined(__clang__) || defined(__GNUC__)) && !defined(__STRICT_ANSI__)
52 /*--------------------------------------------------------------------------*/
54 int main(int argc
, char* argv
[])
57 require
+= info_compiler
[argc
];
58 require
+= info_platform
[argc
];
59 require
+= info_arch
[argc
];
60 #ifdef COMPILER_VERSION_MAJOR
61 require
+= info_version
[argc
];
63 #ifdef COMPILER_VERSION_INTERNAL
64 require
+= info_version_internal
[argc
];
67 require
+= info_simulate
[argc
];
69 #ifdef SIMULATE_VERSION_MAJOR
70 require
+= info_simulate_version
[argc
];
72 require
+= info_language_standard_default
[argc
];
73 require
+= info_language_extensions_default
[argc
];