|
|
Home » Developing U++ » Mac OS » fix TheIde [DOWNLOAD] build flag options in GccBuilder for OSX11 and Cocoa
|
|
|
|
Re: fix TheIde [DOWNLOAD] build flag options in GccBuilder for OSX11 and Cocoa [message #31013 is a reply to message #31011] |
Tue, 01 February 2011 10:03   |
|
Xcode uses the environment variable to select the correct SDK. If you put the paths to it in your build method, then it should work just fine. Also there's a tool called gcc_select which you might want to have a look at. It is a bash script that sets the system into state for building for some target (creates correct symlinks etc.).
Why do you put it into speed optimizations flags when there is {Debug,Release} {fixed flags,link options}? But for now it doesn't probably matter 
Honza
|
|
|
|
|
|
Re: fix TheIde [DOWNLOAD] build flag options in GccBuilder for OSX11 and Cocoa [message #31069 is a reply to message #31067] |
Thu, 03 February 2011 17:28   |
|
fudadmin wrote on Thu, 03 February 2011 16:35 | Honza, thanks a lot for your activities on this forum! Your idea to use compiler name field for setting the sdk was very good. This way then it is even possible to switch sdk's!
Also, your idea led me to a brilliant side effect. I discovered that if I use
/Developer/usr/bin/g++-4.2 -isysroot /Developer/SDKs/MacOSX10.6.sdk
-and not just gcc- now, after some changes in the ide, I am able to compile, link and run cocoa apps from upp theide!
|
You're welcome Actually the "proper way" would be to create a wrapper script containing just that and use it as a compiler name. But no need to be fancy 
Anyway, I love how theide build system can be "hijacked" in so many ways that in the end everything is possible (Even things that shouldn't be... )
Honza
|
|
|
|
|
|
Re: fix TheIde [DOWNLOAD] GccBuilder.cpp for OSX11 and ObjC [message #33718 is a reply to message #33712] |
Wed, 07 September 2011 12:38   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
mirek wrote on Wed, 07 September 2011 08:42 | Please wait before commiting changes... (Besides, your GccBuilder version is out of date anyway).
Why did you:
// else //aris002
// lnk << (!HasFlag("OSX11") ? " -Wl,-s" : "");
?
|
One of the reasons I haven't committed and posted here. Thanks for noticing and sorry. This was left from experimenting with ObjC sometime one year ago (I was going to to put this and other options into some settings dialog and expand into XCode style and storing maybe in *.bm options) and last night it slipped through while merging changes.
Another reason, that I was not able to checkout from your svn server. Also, you said, that my version of file is old. For merging, I think, I used the file from google. Is google server a lot behind or have I mixed up something?
Any plans to make theide builders less hardcoded?
|
|
|
Re: fix TheIde [DOWNLOAD] GccBuilder.cpp for OSX11 and ObjC [message #33736 is a reply to message #33718] |
Fri, 09 September 2011 13:29   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Wed, 07 September 2011 06:38 |
mirek wrote on Wed, 07 September 2011 08:42 | Please wait before commiting changes... (Besides, your GccBuilder version is out of date anyway).
Why did you:
// else //aris002
// lnk << (!HasFlag("OSX11") ? " -Wl,-s" : "");
?
|
One of the reasons I haven't committed and posted here. Thanks for noticing and sorry. This was left from experimenting with ObjC sometime one year ago (I was going to to put this and other options into some settings dialog and expand into XCode style and storing maybe in *.bm options) and last night it slipped through while merging changes.
Another reason, that I was not able to checkout from your svn server. Also, you said, that my version of file is old. For merging, I think, I used the file from google. Is google server a lot behind or have I mixed up something?
|
Just one hour maximum (it gets synced each hour...)
Quote: |
Any plans to make theide builders less hardcoded?
|
I think there are not hardcoded at all. You can add builders as you wish and there is even "Esc" based builder...
Still for this task altering gcc builder is preferable I guess..
Mirek
|
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 11:13:27 CEST 2025
Total time taken to generate the page: 0.04040 seconds
|
|
|