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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-10-15 12:53:12 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-15 12:53:12 +0400
commit4b8430ae8aaab4374310e2f9a91aa253ec2f4ab2 (patch)
treefd9720d408db9a321deb0ea6ca02929a3a5ee648 /CMakeLists.txt
parentd79f679896dffd5cfe0dc169ea021e63e6d671ba (diff)
CMake: Add a flag to explicitly disable SSE/SSE2 intrinsics
The flag is called WITH_CPU_SSE, it is ON by default so no one should be affected by the change really. This should hopefully fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763755
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63dae899366..91a8a0420d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -273,6 +273,8 @@ option(WITH_PYTHON_INSTALL "Copy system python into the blender install fo
option(WITH_PYTHON_INSTALL_NUMPY "Copy system numpy into the blender install folder" ON)
set(PYTHON_NUMPY_PATH "" CACHE PATH "Path to python site-packages or dist-packages containing 'numpy' module")
mark_as_advanced(PYTHON_NUMPY_PATH)
+option(WITH_CPU_SSE "Enable SIMD instruction if they're detected on the host machine" ON)
+mark_as_advanced(WITH_CPU_SSE)
if(UNIX AND NOT APPLE)
option(WITH_PYTHON_INSTALL_REQUESTS "Copy system requests into the blender install folder" ON)
@@ -568,7 +570,13 @@ if(WITH_GHOST_SDL OR WITH_HEADLESS)
set(WITH_GHOST_XDND OFF)
endif()
-TEST_SSE_SUPPORT(COMPILER_SSE_FLAG COMPILER_SSE2_FLAG)
+if(WITH_CPU_SSE)
+ TEST_SSE_SUPPORT(COMPILER_SSE_FLAG COMPILER_SSE2_FLAG)
+else()
+ message(STATUS "SSE and SSE2 optimizations are DISABLED!")
+ set(COMPILER_SSE_FLAG)
+ set(COMPILER_SSE2_FLAG)
+endif()
TEST_STDBOOL_SUPPORT()
if(HAVE_STDBOOL_H)