[PATCH] D46079: [CMake] Enable warnings for runtimes

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 08:14:15 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331042: [CMake] Enable warnings for runtimes (authored by cryptoad, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D46079

Files:
  llvm/trunk/runtimes/CMakeLists.txt


Index: llvm/trunk/runtimes/CMakeLists.txt
===================================================================
--- llvm/trunk/runtimes/CMakeLists.txt
+++ llvm/trunk/runtimes/CMakeLists.txt
@@ -109,6 +109,9 @@
 
   # Avoid checking whether the compiler is working.
   set(LLVM_COMPILER_CHECKED ON)
+  # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions
+  # resulting in unjustified successes by check_cxx_compiler_flag.
+  set(LLVM_ENABLE_WARNINGS ON)
 
   # Handle common options used by all runtimes.
   include(AddLLVM)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46079.144346.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/166aedc0/attachment.bin>


More information about the llvm-commits mailing list