[MacPorts] UsingTheRightCompiler modified

Ryan Schmidt ryandesign at macports.org
Tue Jul 16 23:09:23 PDT 2013


On Jul 17, 2013, at 01:04, MacPorts <noreply at macports.org> wrote:

> Page "UsingTheRightCompiler" was changed by larryv at macports.org
> Diff URL: <https://trac.macports.org/wiki/UsingTheRightCompiler?action=diff&version=20>
> Revision 20
> Comment: create table of compilers

> +||= configure.compiler value        =||= Compiler                      =||= Provided by                    =||
> +||=apple-gcc-4.0                    =|| Apple GCC 4.0                   || MacPorts (apple-gcc40)           ||
> +||=apple-gcc-4.2                    =|| Apple GCC 4.2                   || MacPorts (apple-gcc42)           ||
> +||=cc                               =|| Generic C compiler              || System                           ||
> +||=clang                            =|| Clang / Apple LLVM Compiler     || Xcode                            ||
> +||=gcc                              =|| GCC                             || System                           ||

Provided by system? Isn't it provided by Xcode?

On Mountain Lion, /usr/bin/gcc is not GCC. It is a symlink to llvm-gcc-4.2. It varies by Xcode version. As does /usr/bin/cc, which on Mountain Lion is a symlink to clang.

> +||=gcc-3.3                          =|| GCC 3.3                         || Xcode                            ||
> +||=gcc-4.0                          =|| Apple GCC 4.0                   || Xcode                            ||
> +||=gcc-4.2                          =|| Apple GCC 4.2                   || Xcode                            ||
> +||=llvm-gcc-4.2                     =|| LLVM-GCC 4.2                    || Xcode                            ||

Might be nice to add Xcode version info.




More information about the macports-dev mailing list