Hi Guys, Find attached CMakeVMMaker-LucFabresse.143. What I did: - Add hook CPlatformConfig>>printExtraHeader: to be able to change compiler in Config - add config CogMTCocoaIOSGCC42Config which forces gcc-4.2 (useful on OSX with XCode 4.2 that now uses llvm backend)
- fix StackCocoaIOSCLANGConfig to use compiler clang It seems to work for me ;-) Perhaps it could be added in VMMaker repo? Cheers, #Luc
CMakeVMMaker-LucFabresse.143.mcz (118K) Download Attachment |
2011/12/22 Luc Fabresse <[hidden email]> Hi Guys, I forgot to say that the other alternative is to use a regular config and the following cmake line: cmake -D CMAKE_C_COMPILER=gcc-4.2 -D CMAKE_CXX_COMPILER=g++-4.2 . it may help someone. #Luc |
Hi, cheers, Esteban El 22/12/2011, a las 9:32a.m., Luc Fabresse escribió:
|
2011/12/22 Esteban Lorenzano <[hidden email]>
yes. because I like keeping default OS config and because I don't know how to change the default osx compiler ;-)
Cheers, Luc
|
In reply to this post by Luc Fabresse
ok, I'll see how to integrate it :) cheers, Esteban El 22/12/2011, a las 9:32a.m., Luc Fabresse escribió:
|
It is this change, we need to cross compile before, a simple solution to integrate that.
-- Mariano http://marianopeck.wordpress.com On Dec 22, 2011, at 2:12 PM, Esteban Lorenzano wrote:
|
Administrator
|
In reply to this post by Luc Fabresse
This no longer works in Xcode 4.2 (no gcc present)
Cheers,
Sean |
2012/1/11 Sean P. DeNigris <[hidden email]>
ok thanks for the info. It works for me probably because I still use snow leopard and xcode 4.2... Luc
|
Administrator
|
If you upgraded from an earlier version of Xcode, gcc will remain on your system; but fresh installs do not include it. I installed it from MacPorts (see http://forum.world.st/Xcode-no-longer-includes-gcc-tp4283855p4284100.html). After installing gcc, this line "worked" as shown in this output: -- The C compiler identification is GNU -- The CXX compiler identification is GNU where before is said unknown instead of GNU. However, when I opened the project in Xcode, it was still using the default compiler, and I had to manually change to gcc anyway.
Cheers,
Sean |
Hi Sean, thanks for the info... I obviously upgraded my system instead trying a fresh install, that's why I confused things... btw... gcc macport installs arm cross compiler? (something like arm-etc-gcc) best, Esteban El 11/01/2012, a las 10:40a.m., Sean P. DeNigris escribió: > > > Luc Fabresse wrote >> >> It works for me probably because I still use snow leopard and xcode 4.2... >> > If you upgraded from an earlier version of Xcode, gcc will remain on your > system; but fresh installs do not include it. I installed it from MacPorts > (see > http://forum.world.st/Xcode-no-longer-includes-gcc-tp4283855p4284100.html). > > > Luc Fabresse wrote >> >>>> cmake -D CMAKE_C_COMPILER=gcc-4.2 -D CMAKE_CXX_COMPILER=g++-4.2 . >> > > After installing gcc, this line "worked" as shown in this output: > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > where before is said unknown instead of GNU. > > However, when I opened the project in Xcode, it was still using the default > compiler, and I had to manually change to gcc anyway. > > -- > View this message in context: http://forum.world.st/CMakeVMMaker-patch-tp4225050p4285415.html > Sent from the Squeak VM mailing list archive at Nabble.com. |
In reply to this post by Sean P. DeNigris
2012/1/11 Sean P. DeNigris <[hidden email]>
ok.
yes that is normal. I think that now you can use my CMakeVMMakerConfig which forces gcc42. And if you generate the xcode project file from it, it should use gcc42 directly.
Luc
|
Administrator
|
Oh, okay; I think I get it. It's just for compiling via make. Cool. I'll take a look when it's integrated into blessed
Cheers,
Sean |
Free forum by Nabble | Edit this page |