compile options for macos X builds
This commit is contained in:
parent
58fb16aa13
commit
0b9cf9006a
16
SConstruct
16
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)
|
||||
|
2
extern/qhull/SConscript
vendored
2
extern/qhull/SConscript
vendored
@ -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)
|
||||
|
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']
|
||||
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 "################################################"
|
||||
|
Loading…
Reference in New Issue
Block a user