compile options for macos X builds

This commit is contained in:
Jean-Luc Peurière 2004-07-27 20:31:03 +00:00
parent 58fb16aa13
commit 0b9cf9006a
3 changed files with 12 additions and 8 deletions

@ -165,8 +165,9 @@ 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']
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' ]
@ -1297,6 +1298,9 @@ def appit(target, source, env):
commands.getoutput(cmd)
cmd = 'cp %s %s.app/Contents/MacOS/%s'%(target, 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

@ -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)

@ -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 "################################################"