[PATCH] D126951: [Fortran] Don't add -Werror=date-time for flang

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 02:25:13 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rT25c31a4e8b54: [Fortran] Don't add -Werror=date-time for flang (authored by rovka).

Repository:
  rT test-suite

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126951/new/

https://reviews.llvm.org/D126951

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -53,7 +53,10 @@
 endif()
 
 # We want reproducible builds, so using __DATE__ and __TIME__ is bad
-add_definitions(-Werror=date-time)
+# FIXME: Add this unconditionally when flang starts supporting it.
+if(NOT CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
+  add_definitions(-Werror=date-time)
+endif()
 
 # Add path for custom modules
 set(CMAKE_MODULE_PATH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126951.435843.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220610/d79cf2f9/attachment.bin>


More information about the llvm-commits mailing list