Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Alden Gubala <TylerGubala>2020-09-10 15:54:21 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-09-10 20:40:54 +0300
commit07d7028dd0d47d54d21c54ae5eaf872e60e1bc4b (patch)
tree3cc7503de76c38aa787df0a5c9f159f6204feb29 /build_files/cmake/config/bpy_module.cmake
parentfd5d014b62b25642f3a4b0d86edfb08ed89913f2 (diff)
CMake: various fixes for building Python module
* Don't link against Mesa OpenGL software emulation libraries from the lib folder, they are not intended to be used for building, only install. * Don't use static OpenMP library by default, it's usually not built to work in shared libraries. * Disable jemalloc on all platforms, the reason it fails is not specific to Linux. Differential Revision: https://developer.blender.org/D8827
Diffstat (limited to 'build_files/cmake/config/bpy_module.cmake')
-rw-r--r--build_files/cmake/config/bpy_module.cmake15
1 files changed, 3 insertions, 12 deletions
diff --git a/build_files/cmake/config/bpy_module.cmake b/build_files/cmake/config/bpy_module.cmake
index 18d19b32335..2c0da81a1ea 100644
--- a/build_files/cmake/config/bpy_module.cmake
+++ b/build_files/cmake/config/bpy_module.cmake
@@ -33,18 +33,9 @@ set(WITH_ALEMBIC OFF CACHE BOOL "" FORCE)
# Depends on Python install, do this to quiet warning.
set(WITH_DRACO OFF CACHE BOOL "" FORCE)
-# Note, if linking errors can be resolved, lines below can be removed.
-# Until then, disable configurations known to fail.
-
-if(UNIX AND NOT APPLE)
- if(CMAKE_SYSTEM_NAME MATCHES "Linux")
- # jemalloc causes linking error on import, disable.
- set(WITH_MEM_JEMALLOC OFF CACHE BOOL "" FORCE)
- endif()
-elseif(APPLE)
- # OpenMP causes linking error on build, disable.
- set(WITH_MEM_JEMALLOC OFF CACHE BOOL "" FORCE)
-endif()
+# Jemalloc does not work with dlopen() of Python modules:
+# https://github.com/jemalloc/jemalloc/issues/1237
+set(WITH_MEM_JEMALLOC OFF CACHE BOOL "" FORCE)
if(WIN32)
set(WITH_WINDOWS_BUNDLE_CRT OFF CACHE BOOL "" FORCE)