xcodebuild disregards LD and LDPLUSPLUS in projects that contain swift files

Originator:eyal.keren81
Number:rdar://20166094 Date Originated:15-Mar-2015 09:49 AM
Status:Open Resolved:
Product:xcodebuild Product Version:6.1.1
Classification: Reproducible:yes
 
Summary:
I am using LD and LDPLUSPLUS environment variables to override the default linker, it works fine until I added a swift file to the project. When the project has swift code inside of it, xcodebuild doesn't seem to take LD and LDPLUSPLUS variable into account

Steps to Reproduce:
1. Create a new project iPhone application project with Xcode (only objective c code) 
2. Add User-Defined Setting LD=/tmp/blalba 
3. Compile the project - it will fail because it can't be linked with /tmp/blalba 
4. Add a new swift file to the project 
5. Compile the project - it is expected to fail again, but it will not because it does not use LD variable.


Expected Results:
A project with swift code should also activate LD and LDPLUSPLUS environment variables when linking 

Actual Results:
Once the project has swift code LD and LDPLUSPLUS does not override default linker

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!