[PATCH] D56979: [libcxxabi] Enable LLVM_ENABLE_WARNINGS when building standalone out of tree

Martin Storsjö via Phabricator reviews at reviews.llvm.org
Tue Jan 22 12:46:12 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL351873: Enable LLVM_ENABLE_WARNINGS when building standalone out of tree (authored by mstorsjo, committed by ).
Herald added subscribers: llvm-commits, christof.

Changed prior to commit:
  https://reviews.llvm.org/D56979?vs=182707&id=182963#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D56979

Files:
  libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake


Index: libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
===================================================================
--- libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
+++ libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
@@ -93,6 +93,8 @@
     endif()
   endif()
   if (LLVM_FOUND)
+    # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions.
+    set(LLVM_ENABLE_WARNINGS ON)
     include(AddLLVM OPTIONAL)
     include(HandleLLVMOptions OPTIONAL)
   endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56979.182963.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190122/08c5201a/attachment.bin>


More information about the libcxx-commits mailing list