[Openmp-commits] [PATCH] D122802: [OpenMP] libomp: Fix build with LIBOMP_STATS=ON on x86

Misono Tomohiro via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 31 05:15:31 PDT 2022


t-msn created this revision.
Herald added subscribers: pengfei, guansong, yaxunl.
Herald added a project: All.
t-msn added a reviewer: AndreyChurbanov.
t-msn added a project: OpenMP.
t-msn added a subscriber: openmp-commits.
t-msn published this revision for review.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

It seems llvm build uses -Werror=date-time by defalt since
ead0b76382a5a <https://reviews.llvm.org/rGead0b76382a5a20e8164583d86900de5b3fa9288>, so remove __DATE__/__TIME__ macro to build
successfully when LIBOMP_STATS=ON on x86.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122802

Files:
  openmp/runtime/src/kmp_stats.cpp


Index: openmp/runtime/src/kmp_stats.cpp
===================================================================
--- openmp/runtime/src/kmp_stats.cpp
+++ openmp/runtime/src/kmp_stats.cpp
@@ -787,7 +787,6 @@
   outputEnvVariable(statsOut, "KMP_AFFINITY");
   outputEnvVariable(statsOut, "KMP_BLOCKTIME");
   outputEnvVariable(statsOut, "KMP_LIBRARY");
-  fprintf(statsOut, "# Production runtime built " __DATE__ " " __TIME__ "\n");
 #endif
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122802.419403.patch
Type: text/x-patch
Size: 439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220331/5975f271/attachment.bin>


More information about the Openmp-commits mailing list