[Bf-committers] scons OSX game engine cvs built well, question

car bf-committers@blender.org
Sun, 4 Apr 2004 14:31:18 -0400


--Apple-Mail-1--282936376
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

At .org someone posted this adjustment to speed up scons builds Though 
I did not get it to work yet. Can somebody help ?


Optimization on the scons build method is nonexsistant for darwin. I 
added

  extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', 
'-mcpu=7450', '-mtune=7450']

  , '-ffast-math', '-mcpu=7450', '-mtune=7450' are the additions.

  and

  release_flags = ['-O3']

  to the if sys.platform =='darwin' section and it speeded things up 
nicely.

  To find the correct machine type to add to -mcpu= and -mtune= use 
machine at the command line:
  Last login: Sun Mar 28 09:38:52 on ttyp4
  Welcome to Darwin!
  [PowerBookG4 10:17:43am michaelv ] ~% machine
  ppc7450 you'll get something like this.
  Or you can just use the generic -mcpu=powerpc assuming you have a 
powerpc

  For compiling the gameengine I added this to the SConscript file in 
solid:

  elif sys.platform=='linux2' or sys.platform=='linux-i386':
  defines += ['NDEBUG']
  cflags += ['-O2']
  elif sys.platform == 'darwin':
  cflags += ['-O3', '-ffast-math', '-mcpu=7450', '-mtune=7450']
  This adds the same optimizations to solid as the rest of the code.
--Apple-Mail-1--282936376
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

At .org someone posted this adjustment to speed up scons builds Though
I did not get it to work yet. Can somebody help ?



<fontfamily><param>Verdana</param><x-tad-smaller>Optimization on the
scons build method is nonexsistant for darwin. I added </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> extra_flags = ['-pipe', '-fPIC',
'-funsigned-char', '-ffast-math', '-mcpu=7450', '-mtune=7450'] </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> , '-ffast-math', '-mcpu=7450',
'-mtune=7450' are the additions. </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> and </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> release_flags = ['-O3'] </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> to the if sys.platform =='darwin'
section and it speeded things up nicely. </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> To find the correct machine type to
add to -mcpu= and -mtune= use machine at the command line: </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> Last login: Sun Mar 28 09:38:52 on
ttyp4 </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> Welcome to Darwin! </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> [PowerBookG4 10:17:43am michaelv ] ~%
machine </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> ppc7450 you'll get something like
this. </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> Or you can just use the generic
-mcpu=powerpc assuming you have a powerpc </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> For compiling the gameengine I added
this to the SConscript file in solid: </x-tad-smaller><x-tad-smaller>


</x-tad-smaller><x-tad-smaller> elif sys.platform=='linux2' or
sys.platform=='linux-i386': </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> defines += ['NDEBUG'] </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> cflags += ['-O2'] </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> elif sys.platform == 'darwin': </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> cflags += ['-O3', '-ffast-math',
'-mcpu=7450', '-mtune=7450'] </x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller> This adds the same optimizations to
solid as the rest of the code.</x-tad-smaller></fontfamily>
--Apple-Mail-1--282936376--