Re: Does Xcode have any compiler detection mechanism's
Re: Does Xcode have any compiler detection mechanism's
- Subject: Re: Does Xcode have any compiler detection mechanism's
- From: Greg Guerin <email@hidden>
- Date: Wed, 22 Nov 2006 11:44:00 -0700
Mark Thomas wrote:
>I finally got it tracked down that he was using a old version of XCode
>version 2.1, and that version I guess doesn't understand about
>GCC_VERSION_ppc at all (this was set in the project), but everything else
>worked fine - Doh !
>
>I'm wondering if there something I can in my built steps, to check that the
>right compiler will be used for right side of compilation.
>
>1. Is there to find out what version gcc will be used when compiling the PPC
>or i386 side ?, I'm thinking here of what is next to CompileC in the build
>result window.
>
>2. Maybe is there a way to test object file about which gcc was used ?
>
>3. I thinking that post build step that uses otool -L, and then check each
>architecture and makes sure that they are differen't otherwise raise an
>error.
>
>Any idea's, thoughts
Xcode 2.1 was deprecated long ago, because it generates faulty Universal
apps. See the Developer Tools section of ADC Downloads.
Maybe a preliminary target with a script phase that checks Xcode's version
number. Make all other targets dependent on that one, so nothing is built
if Xcode is too old.
If you can't figure out Xcode's version number, then check the version
numbers of whatever C compiler is being used. I.e. run CompileC and ask
for its per-arch version. That should tell you what you need to know
without actually compiling anything and having to analyze object code.
-- GG
_______________________________________________
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