mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-09 05:02:19 +00:00
Revise r184335 so that warning suppression flag is only for clang 3.4 and higher
llvm-svn: 184399
This commit is contained in:
parent
89488966bd
commit
ac93aedc76
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user