Re: XCode 3.1 and 2.5
Re: XCode 3.1 and 2.5
- Subject: Re: XCode 3.1 and 2.5
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 21 Aug 2008 08:06:23 -0700
On Fri, Aug 15, 2008 at 6:36 AM, Dieter Oberkofler
<email@hidden> wrote:
> I'm using XCode 2.5 and build my project with gcc 4.0.1. I have now also
> installed XCode 3.1 and would ike to some testing when using the new gcc
> 4.0.2 but am unable to find the gcc_select utility thats needs to change the
> gcc version. How would this be done?
Are you building using Xcode 3.1? ...or are you building using Make?
(not clear since you talk about Unix porting guide).
If the former review...
http://developer.apple.com/releasenotes/DeveloperTools/RN-Xcode/index.html
---
New gcc-4.2 and llvm-gcc-4.2 Compilers
Xcode 3.1 includes the gcc 4.2 compiler as an alternative system C /
C++ / Objective-C compiler.
In addition, the llvm-gcc-4.2 compiler is also included with Xcode
3.1. This compiler uses the LLVM backend and code generator with the
gcc 4.2 parser, and supports C, C++, Objective-C, and Objective-C++.
More information is available in the LLVM-GCC 4.2 Release Notes.
To use either of these new compilers in a project, you can use the new
Compiler Version build setting and choose the compiler you want from
the popup menu. By changing this setting in different targets and
configurations and using the per-architecture and per-SDK popups, you
have fine-grained control over which compiler is used in different
circumstances. Note that neither gcc-4.2 nor llvm-gcc-4.2 will compile
code against the 10.4u or earlier SDK, or deploy for Mac OS X 10.4 or
earlier.
---
Compiler Version build setting
The GCC_VERSION build setting is now present by default in the Build
Settings pane, and allows you to set the preferred compiler version to
any configured compiler (whether the compiler is installed at the
moment or not). You can set the compiler version on a
per-configuration basis, and use Conditional Build Settings to use
different compiler versions for different architectures or SDKs.
Note that this overrides (and is preferable to) setting the compiler
version in the Build Rules inspector pane. Use that pane to use a
custom compiler script if necessary, otherwise, the Compiler Version
build setting is preferable.
---
...if the later...
CC=gcc-4.2 ..or.. CC=gcc-4.0
-Shawn
_______________________________________________
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