From b13ef55973cfbd60d95069f4830d4777cc99a448 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Mon, 29 Apr 2013 15:52:38 +0000 Subject: [PATCH] Cycles / SCons: * Fast math compiler flag was set for Cycles, but not OSL. --- intern/cycles/kernel/osl/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/kernel/osl/SConscript b/intern/cycles/kernel/osl/SConscript index 09899567128..4685bb7753e 100644 --- a/intern/cycles/kernel/osl/SConscript +++ b/intern/cycles/kernel/osl/SConscript @@ -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)