mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
Print compiler id and version in builtin info
This commit is contained in:
parent
e6bfd0ecfd
commit
c26cdb97f5
2 changed files with 6 additions and 0 deletions
|
@ -38,7 +38,11 @@
|
|||
#endif
|
||||
#define CMAKE_SYSTEM "@CMAKE_SYSTEM@"
|
||||
#define CMAKE_CXX_COMPILER "@CMAKE_CXX_COMPILER@"
|
||||
#define CMAKE_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@"
|
||||
#define CMAKE_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@"
|
||||
#define CMAKE_C_COMPILER "@CMAKE_C_COMPILER@"
|
||||
#define CMAKE_C_COMPILER_VERSION "@CMAKE_C_COMPILER_VERSION@"
|
||||
#define CMAKE_C_COMPILER_ID "@CMAKE_C_COMPILER_ID@"
|
||||
#define CMAKE_VERSION "@CMAKE_VERSION@"
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,6 +36,8 @@ void print_builtin_feats() {
|
|||
printf("NDEBUG = no (Debug build)\n");
|
||||
#endif
|
||||
printf("Built on %s (CMake %s)\n", CMAKE_SYSTEM, CMAKE_VERSION);
|
||||
printf("C compiler = %s %s\n", CMAKE_C_COMPILER_ID, CMAKE_C_COMPILER_VERSION);
|
||||
printf("C++ compiler = %s %s\n", CMAKE_CXX_COMPILER_ID, CMAKE_CXX_COMPILER_VERSION);
|
||||
printf("Build flags:\n");
|
||||
printf(" %s %s\n", CMAKE_CXX_COMPILER, CMAKE_CXX_FLAGS);
|
||||
printf(" %s %s\n", CMAKE_C_COMPILER, CMAKE_C_FLAGS);
|
||||
|
|
Loading…
Reference in a new issue