[Vm-dev] benchmarking and recent results

Tobias Pape Das.Linux at gmx.de
Sat Oct 5 17:25:46 UTC 2013


Am 05.10.2013 um 19:07 schrieb Göran Krampe <goran at krampe.se>:

> On 10/05/2013 12:31 PM, Tobias Pape wrote:
>> Am 05.10.2013 um 11:48 schrieb Göran Krampe <goran at krampe.se>:
>>> PPS. Also tried using GCC 4.8.1 and 4.9, but then the compiled VM throws "Bus error: 10" at me. Note that it compiles using the switches for clang then... (Esteban and Igor - we need a nice way of switching compiler in CMakeVMMaker!)
>> 
>> You typically do that with the CMake invocation yourself like in:
>> 
>> CC="clang -m32" CXX="clang++ -m32" cmake $SRCDIR
>> cmake --build $BUILDDIR
> 
> Well, let me just say that the framework building the sources adds lots of switches for compiling the VM and also sometimes adjusts for different plugins etc.

Yes, clearly.
The point is here, that CMake tries to match make insofar it
respects the CC and CXX environment variables. 
  That is, when you want to switch the compiler for CMake,
you announce it by setting the environment variables[1]
This should  even work when CMake itself is run by a build script, so you
say

  CC="clang -m32" ./build.sh


All other switches should be unaffected by this.

Best
	-Tobias



[1] EXCEPT for the Xcode generator tool chain.
    Then you have to set some Xcode attributes like here:
    https://github.com/krono/self/blob/cmake/vm/cmake/mac_osx.cmake#L165

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131005/eda6a3a8/signature.pgp


More information about the Vm-dev mailing list