lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation errors from Xcode's new standard library


From: Mike Solomon
Subject: Re: compilation errors from Xcode's new standard library
Date: Sun, 3 Nov 2013 10:55:42 +0100

On Nov 3, 2013, at 10:50 AM, Joseph Rushton Wakeling <address@hidden> wrote:

> On 03/11/13 10:37, David Kastrup wrote:
>> We committed a few Clang-related fixes in the past, I think mostly due
>> to Graham's insistence/testing, but I think at some point of time the
>> "compile with Clang" ambition just faded.
> 
> I just tried a clang-based build on my Ubuntu 13.10 system, just to see what 
> would happen:
> 
>    make clean
>    CC=clang CXX=clang++ ./configure
>    make -j2
> 
> It built fine, and also quite a bit faster than a GCC build.
> 
> Version info:
>  Ubuntu clang version 3.3-5ubuntu4 (branches/release_33) (based on LLVM 3.3)
>  Target: x86_64-pc-linux-gnu
>  Thread model: posix
> 
> FWIW I've found it a good idea to test C/C++ codebases against clang if 
> nothing else because clang is rather better at identifying ambiguities and 
> potential errors and providing instructions for how to fix them.
> 
> Mike, can you try typing on a terminal prompt both:
> 
>   g++ --version
>   clang++ —version

So g++ simlinks to clang, and it is a special apple-brewed clang based on 3.3

mbp-de-mike:SCRIPTS mikesolomon$   g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

mbp-de-mike:SCRIPTS mikesolomon$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Cheers,
MS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]