compile options for macos X builds
authorJean-Luc Peurière <jlp@nerim.net>
Tue, 27 Jul 2004 20:31:03 +0000 (20:31 +0000)
committerJean-Luc Peurière <jlp@nerim.net>
Tue, 27 Jul 2004 20:31:03 +0000 (20:31 +0000)
SConstruct
extern/qhull/SConscript
extern/solid/SConscript

index 4a31262adcb8248682367ed6ac61bf6525efacf4..fe45ae7b499e5214955052ae0b174baa9ba13c09 100644 (file)
@@ -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)
index 47e1779b1bf5bbaef4467202da8836f8a69be6c9..2b9487a9527c194eb39ca331cf502a63405bb082 100644 (file)
@@ -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)
index aec339a28196c0dcb790e088b6b38af1f35c75a8..ff2388471fb053527beff69090dcc98eba2d9b64 100644 (file)
@@ -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 "################################################"