• 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
Custom Linker (Again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Linker (Again)


  • Subject: Custom Linker (Again)
  • From: Salman Khilji <email@hidden>
  • Date: Sat, 20 Aug 2011 21:40:38 -0700

I am using a customer compiler with Xcode and would like to know how to force Xcode to use my own linker line with custom arguments.

I created a new compiler spec file under:

/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins

The default linker is defined in Ld.spec located in:

/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources

The following link seems to indicate that what I want to do is possible:

http://maxao.free.fr/xcode-plugin-interface/compilers-linkers.html

It seems like you have to create a custom Linker spec, give it an identifier, and then have the compiler spec reference your linker spec id by including it in the "RequiredLinker" key.

My compiler spec looks like:

{   Type = Compiler;
    Identifier = com.apple.compilers.armx;
    BasedOn = com.apple.compilers.gcc.4_2;
    Name = "ARMx";
    Version = "4.2";
    Description = "ARMx GCC Cross Compiler";
    ExecPath = "/Volumes/arm-x/bin/arm-none-linux-gnueabi-gcc";
    RequiredLinker = com.apple.pbx.linkers.armx;
    ...
}

The problem is that Xcode 4.1 still is insisting on using the default Apple linker.  I want it to use my ARM based toolchain, which does not support some of the options that Xcode ends up passing on the linker line.

 _______________________________________________
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

  • Prev by Date: Re: suppressing errors and warnings
  • Next by Date: Re: suppressing errors and warnings
  • Previous by thread: Re: suppressing errors and warnings
  • Next by thread: Xcode 4.2 Build #4D5163b: Debugger using no Objective-C description available
  • Index(es):
    • Date
    • Thread