Fossil SCM

Include compiler version in the verbose output.

mistachkin 2014-02-15 01:43 trunk
Commit 916e5a43db5d0b6583d57b7e40d14b943b08218f
1 file changed +10 -2
+10 -2
--- src/config.h
+++ src/config.h
@@ -62,10 +62,18 @@
6262
# include <sys/types.h>
6363
# include <signal.h>
6464
# include <pwd.h>
6565
#endif
6666
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
+
6775
/*
6876
** Define the compiler variant, used to compile the project
6977
*/
7078
#if !defined(COMPILER_NAME)
7179
# if defined(__DMC__)
@@ -75,13 +83,13 @@
7583
# define COMPILER_NAME "pellesc64"
7684
# else
7785
# define COMPILER_NAME "pellesc32"
7886
# endif
7987
# elif defined(_MSC_VER)
80
-# define COMPILER_NAME "msc"
88
+# define COMPILER_NAME "msc-" COMPILER_NAME_STRINGIFY(_MSC_VER)
8189
# elif defined(__MINGW32__)
82
-# define COMPILER_NAME "mingw32"
90
+# define COMPILER_NAME "mingw32-" COMPILER_NAME_STRINGIFY(__MINGW32_VERSION)
8391
# elif defined(_WIN32)
8492
# define COMPILER_NAME "win32"
8593
# elif defined(__GNUC__)
8694
# define COMPILER_NAME "gcc-" __VERSION__
8795
# else
8896
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button