Custom Linker (Again)
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