Skip to content

Commit

Permalink
Disable pymrpt builds in mipsel.
Browse files Browse the repository at this point in the history
This is to prevent out-of-memory builds in build farms.
  • Loading branch information
jlblancoc committed Jul 17, 2023
1 parent 4619084 commit 7686b2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmakemodules/script_python_bindings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ if (NOT MRPT_DISABLE_PYTHON_BINDINGS AND (${CMAKE_CXX_COMPILER_ID} STREQUAL "Cla
message(STATUS "*WARNING* Disabling Python wrappers: not supported if built using clang (it leads to pybind11-generated code errors)")
endif()

# Disable pymrpt in "mipsel" (fails to build due to exhausted memory in build farms)
if (CMAKE_INSTALL_FULL_LIBDIR MATCHES "mipsel")
set(MRPT_DISABLE_PYTHON_BINDINGS ON CACHE BOOL "Disable python wrappers" FORCE)
message(STATUS "*WARNING* Disabling Python wrappers for MIPSEL to prevent out-of-memory errors.")
endif()


if(UNIX AND NOT MRPT_DISABLE_PYTHON_BINDINGS)
# Requires CMake 3.13+
Expand Down

0 comments on commit 7686b2d

Please sign in to comment.