[llvm] r250255 - Split -pedantic and -Wno-long-long into two separate flags so libc++ can remove -pedantic

Eric Fiselier via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 16:51:58 PDT 2015


Author: ericwf
Date: Tue Oct 13 18:51:58 2015
New Revision: 250255

URL: http://llvm.org/viewvc/llvm-project?rev=250255&view=rev
Log:
Split -pedantic and -Wno-long-long into two separate flags so libc++ can remove -pedantic

Modified:
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=250255&r1=250254&r2=250255&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Oct 13 18:51:58 2015
@@ -379,7 +379,8 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE
       endif()
     endif()
 
-    append_if(LLVM_ENABLE_PEDANTIC "-pedantic -Wno-long-long" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+    append_if(LLVM_ENABLE_PEDANTIC "-pedantic" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+    append_if(LLVM_ENABLE_PEDANTIC "-Wno-long-long" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
     add_flag_if_supported("-Wcovered-switch-default" COVERED_SWITCH_DEFAULT_FLAG)
     append_if(USE_NO_UNINITIALIZED "-Wno-uninitialized" CMAKE_CXX_FLAGS)
     append_if(USE_NO_MAYBE_UNINITIALIZED "-Wno-maybe-uninitialized" CMAKE_CXX_FLAGS)




More information about the llvm-commits mailing list