diff --git a/SConstruct b/SConstruct index 4a31262adcb..fe45ae7b499 100644 --- a/SConstruct +++ b/SConstruct @@ -165,11 +165,12 @@ elif sys.platform == 'darwin': fink_path = '/sw/' # TODO : try -mpowerpc -mpowerpc-gopt -mpowerpc-gfxopt optims # doing actual profiling - extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' , '-malign-natural'] - -#'-force_cpusubtype_ALL', '-mpowerpc-gpopt', + extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc'] + + # , '-malign-natural'] malign is causing problems with jpeg lib but worth a 1-2% speedup + #'-force_cpusubtype_ALL', '-mpowerpc-gpopt', cxxflags = [] - defines = ['_THREAD_SAFE'] + defines = ['_THREAD_SAFE' ] if use_quicktime == 'true': defines += ['WITH_QUICKTIME'] warn_flags = ['-Wall'] # , '-W' @@ -1297,8 +1298,11 @@ def appit(target, source, env): commands.getoutput(cmd) cmd = 'cp %s %s.app/Contents/MacOS/%s'%(target, target, target) commands.getoutput(cmd) - cmd = 'strip -u -r %s.app/Contents/MacOS/%s'%(target, target) - commands.getoutput(cmd) + if user_options_dict['BUILD_BINARY'] == 'debug': + print "building debug" + else : + cmd = 'strip -u -r %s.app/Contents/MacOS/%s'%(target, target) + commands.getoutput(cmd) cmd = '%s.app/Contents/Resources/'%target shutil.copy('bin/.blender/.bfont.ttf', cmd) shutil.copy('bin/.blender/.Blanguages', cmd) diff --git a/extern/qhull/SConscript b/extern/qhull/SConscript index 47e1779b1bf..2b9487a9527 100644 --- a/extern/qhull/SConscript +++ b/extern/qhull/SConscript @@ -14,7 +14,7 @@ elif sys.platform=='win32': elif sys.platform=='sunos': qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast']) elif sys.platform=='darwin': - qhull_env.Append (CCFLAGS = ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math']) + qhull_env.Append (CCFLAGS = ['-O3', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' ]) else: qhull_env.Append (CCFLAGS = cflags) qhull_env.Append (CPPDEFINES = defines) diff --git a/extern/solid/SConscript b/extern/solid/SConscript index aec339a2819..ff2388471fb 100644 --- a/extern/solid/SConscript +++ b/extern/solid/SConscript @@ -21,7 +21,7 @@ elif sys.platform=='linux2' or sys.platform=='linux-i386': cflags += ['-O2'] elif sys.platform=='darwin' : defines += ['NDEBUG'] - cflags += ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math'] + cflags += ['-O3','-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' ] else: print "################################################"