Fossil SCM
Include compiler version in the verbose output.
Commit
916e5a43db5d0b6583d57b7e40d14b943b08218f
Parent
016334c45cfeea3…
1 file changed
+10
-2
+10
-2
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -62,10 +62,18 @@ | ||
| 62 | 62 | # include <sys/types.h> |
| 63 | 63 | # include <signal.h> |
| 64 | 64 | # include <pwd.h> |
| 65 | 65 | #endif |
| 66 | 66 | |
| 67 | +/* | |
| 68 | +** Utility macro to wrap an argument with double quotes. | |
| 69 | +*/ | |
| 70 | +#if !defined(COMPILER_NAME_STRINGIFY) | |
| 71 | +# define COMPILER_NAME_STRINGIFY(x) COMPILER_NAME_STRINGIFY1(x) | |
| 72 | +# define COMPILER_NAME_STRINGIFY1(x) #x | |
| 73 | +#endif | |
| 74 | + | |
| 67 | 75 | /* |
| 68 | 76 | ** Define the compiler variant, used to compile the project |
| 69 | 77 | */ |
| 70 | 78 | #if !defined(COMPILER_NAME) |
| 71 | 79 | # if defined(__DMC__) |
| @@ -75,13 +83,13 @@ | ||
| 75 | 83 | # define COMPILER_NAME "pellesc64" |
| 76 | 84 | # else |
| 77 | 85 | # define COMPILER_NAME "pellesc32" |
| 78 | 86 | # endif |
| 79 | 87 | # elif defined(_MSC_VER) |
| 80 | -# define COMPILER_NAME "msc" | |
| 88 | +# define COMPILER_NAME "msc-" COMPILER_NAME_STRINGIFY(_MSC_VER) | |
| 81 | 89 | # elif defined(__MINGW32__) |
| 82 | -# define COMPILER_NAME "mingw32" | |
| 90 | +# define COMPILER_NAME "mingw32-" COMPILER_NAME_STRINGIFY(__MINGW32_VERSION) | |
| 83 | 91 | # elif defined(_WIN32) |
| 84 | 92 | # define COMPILER_NAME "win32" |
| 85 | 93 | # elif defined(__GNUC__) |
| 86 | 94 | # define COMPILER_NAME "gcc-" __VERSION__ |
| 87 | 95 | # else |
| 88 | 96 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -62,10 +62,18 @@ | |
| 62 | # include <sys/types.h> |
| 63 | # include <signal.h> |
| 64 | # include <pwd.h> |
| 65 | #endif |
| 66 | |
| 67 | /* |
| 68 | ** Define the compiler variant, used to compile the project |
| 69 | */ |
| 70 | #if !defined(COMPILER_NAME) |
| 71 | # if defined(__DMC__) |
| @@ -75,13 +83,13 @@ | |
| 75 | # define COMPILER_NAME "pellesc64" |
| 76 | # else |
| 77 | # define COMPILER_NAME "pellesc32" |
| 78 | # endif |
| 79 | # elif defined(_MSC_VER) |
| 80 | # define COMPILER_NAME "msc" |
| 81 | # elif defined(__MINGW32__) |
| 82 | # define COMPILER_NAME "mingw32" |
| 83 | # elif defined(_WIN32) |
| 84 | # define COMPILER_NAME "win32" |
| 85 | # elif defined(__GNUC__) |
| 86 | # define COMPILER_NAME "gcc-" __VERSION__ |
| 87 | # else |
| 88 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -62,10 +62,18 @@ | |
| 62 | # include <sys/types.h> |
| 63 | # include <signal.h> |
| 64 | # include <pwd.h> |
| 65 | #endif |
| 66 | |
| 67 | /* |
| 68 | ** Utility macro to wrap an argument with double quotes. |
| 69 | */ |
| 70 | #if !defined(COMPILER_NAME_STRINGIFY) |
| 71 | # define COMPILER_NAME_STRINGIFY(x) COMPILER_NAME_STRINGIFY1(x) |
| 72 | # define COMPILER_NAME_STRINGIFY1(x) #x |
| 73 | #endif |
| 74 | |
| 75 | /* |
| 76 | ** Define the compiler variant, used to compile the project |
| 77 | */ |
| 78 | #if !defined(COMPILER_NAME) |
| 79 | # if defined(__DMC__) |
| @@ -75,13 +83,13 @@ | |
| 83 | # define COMPILER_NAME "pellesc64" |
| 84 | # else |
| 85 | # define COMPILER_NAME "pellesc32" |
| 86 | # endif |
| 87 | # elif defined(_MSC_VER) |
| 88 | # define COMPILER_NAME "msc-" COMPILER_NAME_STRINGIFY(_MSC_VER) |
| 89 | # elif defined(__MINGW32__) |
| 90 | # define COMPILER_NAME "mingw32-" COMPILER_NAME_STRINGIFY(__MINGW32_VERSION) |
| 91 | # elif defined(_WIN32) |
| 92 | # define COMPILER_NAME "win32" |
| 93 | # elif defined(__GNUC__) |
| 94 | # define COMPILER_NAME "gcc-" __VERSION__ |
| 95 | # else |
| 96 |