improved (and working) fix for Accelerate framework on all OS X versions

This commit is contained in:
Paul Davis 2014-08-18 17:51:03 -04:00
parent b90f866368
commit 71971b75d2

View file

@ -262,8 +262,8 @@ def set_compiler_flags (conf,opt):
# optimization section
if conf.env['FPU_OPTIMIZATION']:
if sys.platform == 'darwin':
compiler_flags.append("-DBUILD_VECLIB_OPTIMIZATIONS");
linker_flags.append(['-framework', 'Accelerate'])
compiler_flags.append("-DBUILD_VECLIB_OPTIMIZATIONS")
conf.env.append_value('LINKFLAGS_OSX', ['-framework', 'Accelerate'])
elif conf.env['build_target'] == 'i686' or conf.env['build_target'] == 'x86_64':
compiler_flags.append ("-DBUILD_SSE_OPTIMIZATIONS")
if not build_host_supports_sse: