• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does SDK Root affect compiles?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does SDK Root affect compiles?


  • Subject: Re: How does SDK Root affect compiles?
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 20 Feb 2007 08:44:04 -0800

On Feb 19, 2007, at 7:50 PM, Rick Mann wrote:

Notice that with the SDK root, it adds


-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/gdc.0.17


(which doesn't actually exist, but that's beside the point).


I'm using a D-language plugin made by someone else, and I thought that it must indicate somewhere to include that directory, but I can't find anything in its files that matches. I want to adjust things so it actually looks in the right place, but I don't know where this stuff comes from.


The root cause of all this: if I link on the command line using something like:


$(GDC) -framework Carbon -framework CoreFoundation -g -o $(APPTRGT)/Contents/MacOS/$(EXNAME) $(OBJ) $(APIOBJ)


It links just fine. But the gdc call inside Xcode fails to include a couple of libraries implicitly included by the gdc command line (libgphobos, the std D library and libgcc_eh.a, exception handling for gcc).


So, I'm trying to figure out how to get Xcode (or gdc when called by Xcode) to "do the right thing" without having to explicitly include the libraries in the project (they're not required for Carbon app projects, for example).


Just one more reminder: you are pushing the edges of Xcode's limited support for alternate compilers, so this kind of thing is going to be difficult until we have a real extension API in place.

Xcode has only a monolithic notion of SDKs.  If an SDK is set, every path into /System, /Library, and /usr gets the SDKROOT prepended.  You either have to copy the gdc pieces into a copy of the 10.4u SDK and point the SDKROOT to that, or move the gdc pieces out of /usr and supply custom paths to them that won't be modified.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How does SDK Root affect compiles?
      • From: Rick Mann <email@hidden>
References: 
 >How does SDK Root affect compiles? (From: Rick Mann <email@hidden>)

  • Prev by Date: FileMerge filters/scripts
  • Next by Date: Re: Resetting panes in Xcode all in one views
  • Previous by thread: How does SDK Root affect compiles?
  • Next by thread: Re: How does SDK Root affect compiles?
  • Index(es):
    • Date
    • Thread