diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-13 10:22:00 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-13 10:22:00 +0000 |
commit | 80b5f793e16174e6f53c2609d5602eb1975c7e8e (patch) | |
tree | 7e370a1bc2672d0a13f5d71bdae3afad3b78399b /lldb/scripts/Python | |
parent | 7ecd99163c4ab06768f7987a32b921f8e15efa31 (diff) | |
download | bcm5719-llvm-80b5f793e16174e6f53c2609d5602eb1975c7e8e.tar.gz bcm5719-llvm-80b5f793e16174e6f53c2609d5602eb1975c7e8e.zip |
Disable a warning for the python modules as the python C API headers
trigger this warning. With this, 'ninja' succeeds without warnings for
me on Linux.
llvm-svn: 229096
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/modules/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/scripts/Python/modules/CMakeLists.txt b/lldb/scripts/Python/modules/CMakeLists.txt index 282320d3826..396d447ff26 100644 --- a/lldb/scripts/Python/modules/CMakeLists.txt +++ b/lldb/scripts/Python/modules/CMakeLists.txt @@ -1,3 +1,10 @@ +# Disable some warnings triggered by Python's headers. +check_cxx_compiler_flag("-Wno-macro-redefined" + CXX_SUPPORTS_NO_MACRO_REDEFINED) +if (CXX_SUPPORTS_NO_MACRO_REDEFINED) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-macro-redefined") +endif () + # build the Python readline suppression module only on Linux if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT __ANDROID_NDK__) add_subdirectory(readline) |