diff options
author | Emil Velikov <[email protected]> | 2017-09-05 15:02:03 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-09-06 17:48:50 +0100 |
commit | 54a789aa2a27bed1697977c608a98ef25b6d5061 (patch) | |
tree | 1c14c8c7c22d75c850d09bdc8735d9f394b2ca5e /src | |
parent | acf7f84564688b43fc4c1c67d864c306fa154940 (diff) |
mesa: replace date/time macros with MESA_GIT_SHA1
Former is non-deterministic, results in non-reproducible builds and
compilers throw a warning about it.
Cc: Rob Herring <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index be3f3610117..cc37a0dc4dc 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -138,6 +138,7 @@ #include "math/m_matrix.h" #include "main/dispatch.h" /* for _gloffset_COUNT */ #include "macros.h" +#include "git_sha1.h" #ifdef USE_SPARC_ASM #include "sparc/sparc.h" @@ -398,10 +399,13 @@ one_time_init( struct gl_context *ctx ) atexit(one_time_fini); -#if defined(DEBUG) && defined(__DATE__) && defined(__TIME__) +#if defined(DEBUG) if (MESA_VERBOSE != 0) { - _mesa_debug(ctx, "Mesa " PACKAGE_VERSION " DEBUG build %s %s\n", - __DATE__, __TIME__); + _mesa_debug(ctx, "Mesa " PACKAGE_VERSION " DEBUG build" +#ifdef MESA_GIT_SHA1 + " (" MESA_GIT_SHA1 ")" +#endif + "\n"); } #endif } |