[Lldb-commits] [lldb] r184399 - Revise r184335 so that warning suppression flag is only for clang 3.4 and higher

Andy Gibbs andyg1001 at hotmail.co.uk
Wed Jun 19 23:47:37 PDT 2013


Author: andyg
Date: Thu Jun 20 01:47:36 2013
New Revision: 184399

URL: http://llvm.org/viewvc/llvm-project?rev=184399&view=rev
Log:
Revise r184335 so that warning suppression flag is only for clang 3.4 and higher

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=184399&r1=184398&r2=184399&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Thu Jun 20 01:47:36 2013
@@ -118,9 +118,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
   )
 endif()
 
-if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
+    AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "3.3")
   add_lldb_definitions(
-    -Wno-deprecated-register
+    -Wno-deprecated-register # Suppress "deprecated register keyword" warnings
   )
 endif()
 





More information about the lldb-commits mailing list