summaryrefslogtreecommitdiffstats
path: root/openmp/runtime
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-01-14 23:18:20 +0000
committerHans Wennborg <hans@hanshq.net>2016-01-14 23:18:20 +0000
commit59162da0eb0e05d517587ea94883354bda813ec0 (patch)
tree3639a8bb539ebc4182e9d9d410021f39f3a67e14 /openmp/runtime
parentf4bb2f0dc322e15dddda95eafbb2eb0485f03e69 (diff)
downloadbcm5719-llvm-59162da0eb0e05d517587ea94883354bda813ec0.tar.gz
bcm5719-llvm-59162da0eb0e05d517587ea94883354bda813ec0.zip
Don't use __DATE__ or __TIME__; it breaks release builds (PR26145)
The release builds are configured to be reproducible, so that the binaries compare equal between bootstrap iterations. The OpenMP run-time build was failing like this: runtime/src/kmp_version.c:108:79: error: expansion of date or time macro is not reproducible [-Werror,-Wdate-time] char const __kmp_version_build_time[] = KMP_VERSION_PREFIX "build time: " __DATE__ " " __TIME__; Figuring as the build currently doesn't set LIBOMP_DATE, it's probably OK to skip setting the build time here too. llvm-svn: 257833
Diffstat (limited to 'openmp/runtime')
-rw-r--r--openmp/runtime/src/kmp_version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_version.c b/openmp/runtime/src/kmp_version.c
index 2ddd76d3ad7..328aa099170 100644
--- a/openmp/runtime/src/kmp_version.c
+++ b/openmp/runtime/src/kmp_version.c
@@ -105,7 +105,7 @@ char const __kmp_version_copyright[] = KMP_VERSION_PREFIX KMP_COPYRIGHT;
char const __kmp_version_lib_ver[] = KMP_VERSION_PREFIX "version: " stringer( KMP_VERSION_MAJOR ) "." stringer( KMP_VERSION_MINOR ) "." stringer( KMP_VERSION_BUILD );
char const __kmp_version_lib_type[] = KMP_VERSION_PREFIX "library type: " KMP_LIB_TYPE;
char const __kmp_version_link_type[] = KMP_VERSION_PREFIX "link type: " KMP_LINK_TYPE;
-char const __kmp_version_build_time[] = KMP_VERSION_PREFIX "build time: " __DATE__ " " __TIME__;
+char const __kmp_version_build_time[] = KMP_VERSION_PREFIX "build time: " "no_timestamp";
#if KMP_MIC2
char const __kmp_version_target_env[] = KMP_VERSION_PREFIX "target environment: MIC2";
#endif
OpenPOWER on IntegriCloud