forked from bartvdbraak/blender
Cycles / SCons:
* Fast math compiler flag was set for Cycles, but not OSL.
This commit is contained in:
parent
cabe929b2a
commit
b13ef55973
@ -44,10 +44,10 @@ defs.append('CCL_NAMESPACE_END=}')
|
||||
defs.append('WITH_OSL')
|
||||
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
||||
cxxflags.append('-DBOOST_NO_RTTI -DBOOST_NO_TYPEID'.split())
|
||||
cxxflags.append('-DBOOST_NO_RTTI -DBOOST_NO_TYPEID /fp:fast'.split())
|
||||
incs.append(env['BF_PTHREADS_INC'])
|
||||
defs.append('OSL_STATIC_LIBRARY')
|
||||
else:
|
||||
cxxflags.append('-fno-rtti -DBOOST_NO_RTTI -DBOOST_NO_TYPEID'.split())
|
||||
cxxflags.append('-fno-rtti -DBOOST_NO_RTTI -DBOOST_NO_TYPEID -ffast-math'.split())
|
||||
|
||||
env.BlenderLib ('cycles_kernel_osl', sources, incs, defs, libtype=['intern'], priority=[10], cxx_compileflags=cxxflags)
|
||||
|
Loading…
Reference in New Issue
Block a user