summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/modules/CMakeLists.txt
blob: f2269c342005b5c49d09a3ca5450a09770ced72e (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "GNU" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "kFreeBSD")
   add_subdirectory(readline)
endif()
OpenPOWER on IntegriCloud