2007-04-28 09:35:01 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
# error "A C++ compiler has been selected for C."
|
|
|
|
#endif
|
|
|
|
|
2008-02-25 18:47:19 -05:00
|
|
|
#if defined(__18CXX)
|
|
|
|
# define ID_VOID_MAIN
|
|
|
|
#endif
|
2007-04-28 09:35:01 -04:00
|
|
|
|
2014-05-07 12:25:39 +02:00
|
|
|
@CMAKE_C_COMPILER_ID_CONTENT@
|
2007-05-22 12:48:16 -04:00
|
|
|
|
2008-03-10 09:32:25 -04: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 15:35:15 -05:00
|
|
|
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
2013-10-04 10:10:22 -04:00
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
|
|
|
#endif
|
2007-04-28 09:35:01 -04:00
|
|
|
|
2014-01-20 17:57:40 +01:00
|
|
|
#ifdef __QNXNTO__
|
2015-01-14 10:28:59 -05:00
|
|
|
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
2014-01-20 17:57:40 +01:00
|
|
|
#endif
|
|
|
|
|
2008-02-25 09:23:14 -05:00
|
|
|
@CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@
|
2013-10-24 13:04:24 -04:00
|
|
|
@CMAKE_C_COMPILER_ID_ERROR_FOR_TEST@
|
2008-08-07 09: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-19 21:58:42 -05:00
|
|
|
require += info_arch[argc];
|
2011-12-05 09:44:09 -05:00
|
|
|
#ifdef COMPILER_VERSION_MAJOR
|
|
|
|
require += info_version[argc];
|
2013-10-04 10: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 09:44:09 -05:00
|
|
|
#endif
|
2008-08-07 09:09:45 -04:00
|
|
|
(void)argv;
|
|
|
|
return require;
|
|
|
|
}
|
|
|
|
#endif
|