Re: Replacement for gcc_select in Xcode 3.1?
Re: Replacement for gcc_select in Xcode 3.1?
- Subject: Re: Replacement for gcc_select in Xcode 3.1?
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 21 Aug 2008 08:05:02 -0700
On Thu, Aug 21, 2008 at 6:06 AM, David N. Williams
<email@hidden> wrote:
> I'm not doing very well searching the developer docs, nor with
> google, so I'd better ask. What's the replacement for the
> gcc_select command line tool in Xcode 3.1?
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.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden