[Bf-blender-cvs] [0ab30f9e391] master: Build deps: Fixed TBB build with GCC 6 and newer, turning off dead store elimination.
Stefan Werner
noreply at git.blender.org
Tue Apr 24 13:30:54 CEST 2018
Commit: 0ab30f9e391ae4497e5e8e4009db02f4bf58810a
Author: Stefan Werner
Date: Tue Apr 24 13:23:52 2018 +0200
Branches: master
https://developer.blender.org/rB0ab30f9e391ae4497e5e8e4009db02f4bf58810a
Build deps: Fixed TBB build with GCC 6 and newer, turning off dead store elimination.
===================================================================
M build_files/build_environment/patches/cmakelists_tbb.txt
===================================================================
diff --git a/build_files/build_environment/patches/cmakelists_tbb.txt b/build_files/build_environment/patches/cmakelists_tbb.txt
index 1be9ca25f6a..da9fd938943 100644
--- a/build_files/build_environment/patches/cmakelists_tbb.txt
+++ b/build_files/build_environment/patches/cmakelists_tbb.txt
@@ -88,6 +88,14 @@ elseif(WIN32)
set(DISABLE_RTTI "/EHs- /GR- ")
endif()
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ include(CheckCXXCompilerFlag)
+ check_cxx_compiler_flag("-flifetime-dse=1" SUPPORTS_FLIFETIME)
+ if (SUPPORTS_FLIFETIME)
+ add_definitions(-flifetime-dse=1)
+ endif()
+endif()
+
# Linker export definitions
if (WIN32)
add_custom_command(OUTPUT tbb.def
More information about the Bf-blender-cvs
mailing list