diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2004-07-28 00:31:03 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2004-07-28 00:31:03 +0400 |
commit | 0b9cf9006a062c8e6897b000c1204d963d1e5a4c (patch) | |
tree | cd92aa2b4b1c048bb62915e47702da8678313d38 /SConstruct | |
parent | 58fb16aa13e024cb5b4e37a2b0901d484d8e8096 (diff) |
compile options for macos X builds
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 16 |
1 files changed, 10 insertions, 6 deletions
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) |