On 9 June 2016 at 18:51, David Strubbe wrote:
> Hi all,
>
> I am a bit confused about what is going on with selection of compiler on
> Snow Leopard for the apbs port. It is taking clang for C but llvm-g++-4.2
> for C++, and the latter does not work for this port. If clang++ were used I
> think it would work. Why is that not being selected? Why is an inconsistent
> pair of C and C++ being used?

10.6 ships clang, but no clang++.

You could try whether blacklisting
    clang < 425
helps.

>From 10.6 on my VM:

> clang -v
Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
> xcodebuild -version
Xcode 3.2.6
Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
BuildVersion: 10M2518

>From 10.7:
> clang -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
> xcodebuild -version
Xcode 4.6.3
Build version 4H1503


>From portconfigure.tcl:

    } elseif {[regexp {^clang$} $compiler]} {
        switch $type {
            cc      -
            objc    { return [find_developer_tool clang] }
            cxx     -
            objcxx  {
                set clangpp [find_developer_tool clang++]
                if {[file executable $clangpp]} {
                    return $clangpp
                }
                return [find_developer_tool llvm-g++-4.2]
            }
        }

Mojca
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to