[Lldb-commits] [lldb] r205389 - build: ignore pragma warnings with GCC

Saleem Abdulrasool compnerd at compnerd.org
Tue Apr 1 20:51:16 PDT 2014


Author: compnerd
Date: Tue Apr  1 22:51:16 2014
New Revision: 205389

URL: http://llvm.org/viewvc/llvm-project?rev=205389&view=rev
Log:
build: ignore pragma warnings with GCC

GCC does not support '#pragma mark'.  Add -Wno-unknown-pragmas if the compiler
supports it.

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=205389&r1=205388&r2=205389&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Tue Apr  1 22:51:16 2014
@@ -133,6 +133,12 @@ if (CXX_SUPPORTS_NO_DEPRECATED_DECLARATI
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
 endif ()
 
+check_cxx_compiler_flag("-Wno-unknown-pragmas"
+                        CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS)
+if (CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS)
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
+endif ()
+
 # Disable Clang warnings
 check_cxx_compiler_flag("-Wno-deprecated-register"
                         CXX_SUPPORTS_NO_DEPRECATED_REGISTER)





More information about the lldb-commits mailing list