OSX/scons: use ditto --arch <arch> instead of cp, to thin out unused architecture...
authorJens Verwiebe <info@jensverwiebe.de>
Tue, 21 May 2013 16:44:39 +0000 (16:44 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Tue, 21 May 2013 16:44:39 +0000 (16:44 +0000)
build_files/scons/tools/Blender.py

index 51a38ee75a82b19fd0583c020d55bbe600d5fc37..c5b4494e14f1518b511db27ec2dbd4c420668b43 100644 (file)
@@ -687,7 +687,7 @@ def AppIt(target=None, source=None, env=None):
         cmd = 'mkdir %s/%s.app/Contents/MacOS/lib'%(installdir, binary)
         commands.getoutput(cmd)
         instname = env['BF_CXX']
-        cmd = 'cp %s/lib/libgcc_s.1.dylib %s/%s.app/Contents/MacOS/lib/'%(instname, installdir, binary)
+        cmd = 'ditto --arch %s %s/lib/libgcc_s.1.dylib %s/%s.app/Contents/MacOS/lib/'%(osxarch, instname, installdir, binary)
         commands.getoutput(cmd)
         cmd = 'install_name_tool -id @executable_path/lib/libgcc_s.1.dylib %s/%s.app/Contents/MacOS/lib/libgcc_s.1.dylib'%(installdir, binary)
         commands.getoutput(cmd)