2007-04-28 17:35:01 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
# error "A C++ compiler has been selected for C."
|
|
|
|
#endif
|
|
|
|
|
2008-02-26 02:47:19 +03:00
|
|
|
#if defined(__18CXX)
|
|
|
|
# define ID_VOID_MAIN
|
|
|
|
#endif
|
2007-04-28 17:35:01 +04:00
|
|
|
|
2014-05-07 14:25:39 +04:00
|
|
|
@CMAKE_C_COMPILER_ID_CONTENT@
|
2007-05-22 20:48:16 +04:00
|
|
|
|
2008-03-10 16:32:25 +03:00
|
|
|
/* Construct the string literal in pieces to prevent the source from
|
|
|
|
getting matched. Store it in a pointer rather than an array
|
|
|
|
because some compilers will just produce instructions to fill the
|
|
|
|
array rather than assigning a pointer to a static array. */
|
2010-12-29 23:35:15 +03:00
|
|
|
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
2013-10-04 18:10:22 +04:00
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
|
|
|
#endif
|
2007-04-28 17:35:01 +04:00
|
|
|
|
2014-01-20 20:57:40 +04:00
|
|
|
#ifdef __QNXNTO__
|
2015-01-14 18:28:59 +03:00
|
|
|
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
2014-01-20 20:57:40 +04:00
|
|
|
#endif
|
|
|
|
|
2008-02-25 17:23:14 +03:00
|
|
|
@CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@
|
2013-10-24 21:04:24 +04:00
|
|
|
@CMAKE_C_COMPILER_ID_ERROR_FOR_TEST@
|
2008-08-07 17:09:45 +04:00
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifdef ID_VOID_MAIN
|
|
|
|
void main() {}
|
|
|
|
#else
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
int require = 0;
|
|
|
|
require += info_compiler[argc];
|
|
|
|
require += info_platform[argc];
|
2009-11-20 05:58:42 +03:00
|
|
|
require += info_arch[argc];
|
2011-12-05 18:44:09 +04:00
|
|
|
#ifdef COMPILER_VERSION_MAJOR
|
|
|
|
require += info_version[argc];
|
2013-10-04 18:10:22 +04:00
|
|
|
#endif
|
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
require += info_simulate[argc];
|
|
|
|
#endif
|
|
|
|
#ifdef SIMULATE_VERSION_MAJOR
|
|
|
|
require += info_simulate_version[argc];
|
2011-12-05 18:44:09 +04:00
|
|
|
#endif
|
2008-08-07 17:09:45 +04:00
|
|
|
(void)argv;
|
|
|
|
return require;
|
|
|
|
}
|
|
|
|
#endif
|