compile options for macos X builds
This commit is contained in:
16
SConstruct
16
SConstruct
@@ -165,11 +165,12 @@ elif sys.platform == 'darwin':
|
|||||||
fink_path = '/sw/'
|
fink_path = '/sw/'
|
||||||
# TODO : try -mpowerpc -mpowerpc-gopt -mpowerpc-gfxopt optims
|
# TODO : try -mpowerpc -mpowerpc-gopt -mpowerpc-gfxopt optims
|
||||||
# doing actual profiling
|
# doing actual profiling
|
||||||
extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' , '-malign-natural']
|
extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc']
|
||||||
|
|
||||||
#'-force_cpusubtype_ALL', '-mpowerpc-gpopt',
|
# , '-malign-natural'] malign is causing problems with jpeg lib but worth a 1-2% speedup
|
||||||
|
#'-force_cpusubtype_ALL', '-mpowerpc-gpopt',
|
||||||
cxxflags = []
|
cxxflags = []
|
||||||
defines = ['_THREAD_SAFE']
|
defines = ['_THREAD_SAFE' ]
|
||||||
if use_quicktime == 'true':
|
if use_quicktime == 'true':
|
||||||
defines += ['WITH_QUICKTIME']
|
defines += ['WITH_QUICKTIME']
|
||||||
warn_flags = ['-Wall'] # , '-W'
|
warn_flags = ['-Wall'] # , '-W'
|
||||||
@@ -1297,8 +1298,11 @@ def appit(target, source, env):
|
|||||||
commands.getoutput(cmd)
|
commands.getoutput(cmd)
|
||||||
cmd = 'cp %s %s.app/Contents/MacOS/%s'%(target, target, target)
|
cmd = 'cp %s %s.app/Contents/MacOS/%s'%(target, target, target)
|
||||||
commands.getoutput(cmd)
|
commands.getoutput(cmd)
|
||||||
cmd = 'strip -u -r %s.app/Contents/MacOS/%s'%(target, target)
|
if user_options_dict['BUILD_BINARY'] == 'debug':
|
||||||
commands.getoutput(cmd)
|
print "building debug"
|
||||||
|
else :
|
||||||
|
cmd = 'strip -u -r %s.app/Contents/MacOS/%s'%(target, target)
|
||||||
|
commands.getoutput(cmd)
|
||||||
cmd = '%s.app/Contents/Resources/'%target
|
cmd = '%s.app/Contents/Resources/'%target
|
||||||
shutil.copy('bin/.blender/.bfont.ttf', cmd)
|
shutil.copy('bin/.blender/.bfont.ttf', cmd)
|
||||||
shutil.copy('bin/.blender/.Blanguages', cmd)
|
shutil.copy('bin/.blender/.Blanguages', cmd)
|
||||||
|
2
extern/qhull/SConscript
vendored
2
extern/qhull/SConscript
vendored
@@ -14,7 +14,7 @@ elif sys.platform=='win32':
|
|||||||
elif sys.platform=='sunos':
|
elif sys.platform=='sunos':
|
||||||
qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
|
qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
|
||||||
elif sys.platform=='darwin':
|
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:
|
else:
|
||||||
qhull_env.Append (CCFLAGS = cflags)
|
qhull_env.Append (CCFLAGS = cflags)
|
||||||
qhull_env.Append (CPPDEFINES = defines)
|
qhull_env.Append (CPPDEFINES = defines)
|
||||||
|
2
extern/solid/SConscript
vendored
2
extern/solid/SConscript
vendored
@@ -21,7 +21,7 @@ elif sys.platform=='linux2' or sys.platform=='linux-i386':
|
|||||||
cflags += ['-O2']
|
cflags += ['-O2']
|
||||||
elif sys.platform=='darwin' :
|
elif sys.platform=='darwin' :
|
||||||
defines += ['NDEBUG']
|
defines += ['NDEBUG']
|
||||||
cflags += ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math']
|
cflags += ['-O3','-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' ]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print "################################################"
|
print "################################################"
|
||||||
|
Reference in New Issue
Block a user