mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix unaligned array crash in Eigen3 because of compilation option. The EIGEN_DONT_ALIGN_STATICALLY compilation option was added for Win32 only in revision 41283 because of some compilation problem. But this option is causing alignment problem for Eigen3 local variables when SSE optimization is enabled. I do not have any compilation problem when the option is not defined, so I just remove it as it should.
This commit is contained in:
parent
a921ca86f7
commit
ef850d75f5
4 changed files with 0 additions and 12 deletions
|
|
@ -318,8 +318,5 @@ set(SRC
|
|||
../../extern/Eigen3/Eigen/src/Cholesky/LLT.h
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_intern_itasc "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
|
|
|||
|
|
@ -9,8 +9,5 @@ incs = '. ../../extern/Eigen3'
|
|||
|
||||
defs = []
|
||||
|
||||
if env['PLATFORM'] == 'win32':
|
||||
defs.append('EIGEN_DONT_ALIGN_STATICALLY')
|
||||
|
||||
env.BlenderLib ('bf_intern_itasc', sources, Split(incs), defs, libtype=['intern','player'], priority=[20,100] )
|
||||
|
||||
|
|
|
|||
|
|
@ -57,8 +57,5 @@ if(WITH_IK_ITASC)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_ikplugin "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
|
|
|||
|
|
@ -8,7 +8,4 @@ incs += ' ../blenkernel ../include ../ikplugin #/intern/itasc #/extern/Eigen3'
|
|||
|
||||
defs.append('WITH_IK_ITASC')
|
||||
|
||||
if env['PLATFORM'] == 'win32':
|
||||
defs.append('EIGEN_DONT_ALIGN_STATICALLY')
|
||||
|
||||
env.BlenderLib ( 'bf_ikplugin', sources, Split(incs), defs, libtype=['core','player'], priority=[180, 190] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue