What is my version of LLVM & clang (OSX)?

On Mac OS, if I run clang --version , I get:

 Apple LLVM version 6.0 (clang-600.0.34.4) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.0.0 Thread model: posix 

Since the official LLVM page assumes that the current version of LLVM is 3.5, it seems that Apple version control clang is different from open source LLVM. The output (based on LLVM 3.5svn) suggests that this is probably also 3.5 on my machine.

Now I came here because I wanted to compile a C ++ 14 file using g++ -std=c++14 main.cc This page assumes this option should work on clang 3.5. However, it only works with -std=c++1y , which works on clang 3.4 or earlier.

So what is the equivalent of the open source LLVM version for the Apple version? It seems to be 3.5, but why doesn't it work?

+5
source share
1 answer

This is some version of the svn llvm 3.5 branch before the official version 3.5.

The point is that it probably should have all 3.4 functions plus some of the 3.5 functions.

+7
source

All Articles