Rationale: scripts/Python/modules: android is excluded at a higher level, so no point in checking here tools/lldb-mi: lldb-mi builds fine (with some cosmetic tweaks) on android, and there is no reason it shouldn't. tools/lldb-server: LLDB_DISABLE_LIBEDIT/CURSES already take the platform into account, so there is no point in checking again. I am reasonably confident this should not break the build on any platform, but I'll keep an eye out on the bots. llvm-svn: 288661
12 lines
409 B
CMake
12 lines
409 B
CMake
# 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")
|
|
add_subdirectory(readline)
|
|
endif()
|