GCC_VERSION_* not being respected
GCC_VERSION_* not being respected
- Subject: GCC_VERSION_* not being respected
- From: Steve Checkoway <email@hidden>
- Date: Fri, 30 Dec 2005 07:25:15 -0800
I've added the following settings to my project:
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 3.3
MACOSX_DEPLOYMENT_TARGET = 10.2
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.2
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk
When I build, Xcode sets:
setenv GCC_VERSION
setenv GCC_VERSION_i386 4.0
setenv GCC_VERSION_ppc 3.3
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv MACOSX_DEPLOYMENT_TARGET_i386 10.4
setenv MACOSX_DEPLOYMENT_TARGET_ppc 10.2
setenv SDKROOT
setenv SDKROOT_i386 /Developer/SDKs/MacOSX10.4u.sdk
setenv SDKROOT_ppc /Developer/SDKs/MacOSX10.2.8.sdk
When I start building it begins to compile my prefix headers for i386:
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/usr/bin/gcc-4.0 -x c++-header -arch i386 ...
So far so good, it's using 10.4 and gcc 4.0. However, when it
compiles it for ppc, I get:
setenv MACOSX_DEPLOYMENT_TARGET 10.2
/usr/bin/gcc-4.0 -x c++-header -arch ppc ...
Clearly this is wrong. Also, in both cases NEXT_ROOT has not been
set. However, if I build my original configuration that has
MACOSX_DEPLOYMENT_TARGET = 10.2
GCC_VERSION = 3.3
SDKROOT = /Developer/SDKs/MacOSX10.2.8.sdk
then when it compiles the prefix header, I get
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.2.8.sdk
/usr/bin/gcc-3.3 -x objective-c-header -arch ppc
In the first configuration (with i386 and ppc), if I set GCC_VERSION
it will use that for both ppc and i386.
Am I just missing something blindingly obvious?
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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