Re: [Darwin, driver] Make our sysroot handling the same as clang's.

2015-09-13 Thread Mike Stump
On Sep 13, 2015, at 1:59 PM, Iain Sandoe wrote: > chose this comment carefully : " for something that's essentially a constant > for the versions of ld that work with current GCC. “ > WDYT? I can revise the patch if you think there's a Better Way to do it. So, I tried to check around and see on

Re: [Darwin, driver] Make our sysroot handling the same as clang's.

2015-09-13 Thread Iain Sandoe
Hi Mike, On 13 Sep 2015, at 21:32, Mike Stump wrote: > On Sep 12, 2015, at 8:02 AM, Iain Sandoe wrote: >> OK for trunk? chose this comment carefully : " for something that's essentially a constant for the versions of ld that work with current GCC. " > So, does this work on 10.3? not on its o

Re: [Darwin, driver] Make our sysroot handling the same as clang's.

2015-09-13 Thread Mike Stump
On Sep 12, 2015, at 8:02 AM, Iain Sandoe wrote: > OK for trunk? So, does this work on 10.3? ppc? ppc64? You modify darwin.h, and that file is used everywhere. If it really works everywhere, Ok. If it doesn’t, then it should be in a file that is used only on the systems that support it. Ok

[Darwin, driver] Make our sysroot handling the same as clang's.

2015-09-12 Thread Iain Sandoe
Hi, At present, we have somewhat strange sysroot in that --sysroot causes -isysroot to be passed to cc1* ... ... but no -syslibroot for collect2/ld. Conversely, -isysroot /XYZZY causes this to be passed as -isysroot to cc1* and -syslibroot to collect/ld. AFAIU the options, it ought to be the ot