Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.4
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.4.1
Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.5
Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.5.1
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.5.2 (4G2008a)
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.6
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.6.1
Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
# Xcode 4.6.2
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
# Xcode 4.6.3
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
# Xcode 5.0
Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
# Xcode 5.0.1 (5A2053), 5.0.2 (5A3005)
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
# Xcode 5.1 (5B130a)
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
# Xcode 5.1.1 (5B1008)
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
# Xcode 6.0 b7 (6A280n), GM (6A313)
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
# Xcode 6.0.1 (6A317)
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
# Xcode 6.1 (6A1052c, 6A1052d)
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
# Xcode 6.1.1 (6A2008a)
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
# Xcode 6.2 (6C131e)
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
# Xcode 6.3 (6D570)
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
# Xcode 6.3.1 (6D1002)
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
# Xcode 6.3.2 (6D2105)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
# Xcode 6.4 (6E35b)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
(That's there is no change?)
# Xcode 7.0 beta (7A120f)
Apple LLVM version 7.0.0 (clang-700.0.53)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
(thanks @karies)
# Xcode 7.0 GM (7A218)
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
# Xcode 7.0 (7A220)
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
(thanks @LogicalKnight)
# Xcode 7.1 (7B91b)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
# Xcode 7.1.1 (7B1005)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
# Xcode 7.2 (7C68)
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
(thanks @bobsummerwill)
# Xcode 7.2.1 (7C1002)
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
# Xcode 7.3 (7D175)
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 7.3.1 (7D1014)
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.0 (8A218a)
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.1 GM (8T61a) and 8.1 (8B62)
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.2 (8C38)
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3 (8E162)
Apple LLVM version 8.1.0 (clang-802.0.38)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3.1 (8E1000a)
Apple LLVM version 8.1.0 (clang-802.0.41)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3.2 (8E2002)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3.3 (8E3004b)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Thank you for sharing this, it is an excellent reference to have bookmarked. (Found it via Google.)

Xcode 5 final release is clang-500.2.76

Owner

yamaya commented Sep 20, 2013

Really?
This is no change from "500.2.75" where is my.

any chance you know what version of LIBC++ they are shipping with each one of these Apple LLVM versions?

Owner

yamaya commented Oct 18, 2014

I don't record the libc++.

After today's update of command line tools/xcode I get:

About Xcode:
Version 6.2 (6C131e)

/usr/bin/clang++ --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

Owner

yamaya commented Mar 23, 2015

Thanks.

After today's update of command line tools/xcode I get:

About Xcode:
Version 6.3 (6D570)

/usr/bin/clang++ --version
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

(The bug preventing having debug symbols with C++ code containing C++14 type-deduced (auto) functions seems to be corrected. Hooray! :-))

EDIT: I see now that this update was already included in the list above. Sorry for the duplicate.

Xcode 7.0 beta (7A120f) after xcode-select'ing it:
Apple LLVM version 7.0.0 (clang-700.0.53)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

Owner

yamaya commented Jul 1, 2015

Thanks @karies.
I update this page with your information.

Does anyone know how to change the compiler version on an xcode target? I can only select 'latest llvm' from the build settings.

oscarbg commented Sep 10, 2015

Xcode 7,1 beta
Apple LLVM version 7.0.0 (clang-700.1.74)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

Xcode 7.0 (7A220)
$ clang --version
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Owner

yamaya commented Sep 17, 2015

Thanks @LogicalKnight.

minsko commented Sep 30, 2015

Xcode 7.0.1 (7A1001)
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

minsko commented Oct 22, 2015

Xcode 7.1 (7B91b)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Owner

yamaya commented Oct 22, 2015

Thanks @minsko

Xcode 7.2 beta (7C46l)
Apple LLVM version 7.0.0 (clang-700.1.78)
Target: x86_64-apple-darwin15.0.0
Thread model: posix

swinbank commented Nov 1, 2015

Is Xcode 7's LLVM based on 3.7? I assume it is since they were both released around the same time, but I'm curious why clang --version no longer reports this.

minsko commented Nov 10, 2015

Xcode 7.1.1 (7B1005)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
(Same as Xcode 7.1)

ikantor commented Nov 18, 2015

Any ideas when Apple is going to release clang-700.0.72 sources?

socantre commented Dec 9, 2015

Xcode Version 7.2 (7C68)
Apple LLVM version 7.0.2 (clang-700.1.81)

More detailed version of previous post:

Xcode Version 7.2 (7C68)
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix

Xcode 7.3 beta 2 (7D129n)
Apple LLVM version 7.3.0 (clang-703.0.16.1)
Target: x86_64-apple-darwin15.3.0
Thread model: posix

The reported Target is based on the OS being used and has little to do with the clang version. The thread model is hard-coded as 'posix'. Neither of these need to be recorded.

Xcode 7.3 (7D175)
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix

XVilka commented Mar 22, 2016

What about versions of the vanilla LLVM/Clang for clang-7xx.x.xx versions?

lasote commented Mar 23, 2016

Apple LLVM passes from 7.0 to 7.3??? why? there is no 7.1 nor 7.2?

Which version of LLVM is Apple LLVM 7.3 based on?

gusc commented Apr 12, 2016

Apple LLVM 7.0 looks like based on LLVM 3.7.0svn (I'm guessing from http://opensource.apple.com/source/clang/clang-700.0.72/src/configure)

Xcode 7.3.1 (7D1014)
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.4.0
Thread model: posix

elaijuh commented May 18, 2016

+1 for how can i know the vanilla clang version apple is using basis

zrax commented Jun 29, 2016

Looking at the sources (src/CMakeLists.txt), it appears AppleClang is based on (approximately) the following LLVM branches:
clang-700.0.72 => LLVM 3.7.0
clang-700.1.76 => LLVM 3.7.0
clang-700.1.81 => LLVM 3.7.0
clang-703.0.29 => LLVM 3.8.0
clang-703.0.31 => LLVM 3.8.0

dschwen commented Jul 13, 2016

Xcode 8 beta
Apple LLVM version 8.0.0 (clang-800.0.31)
Target: x86_64-apple-darwin16.0.0
Thread model: posix

LogicalKnight commented Sep 14, 2016 edited

Xcode 8
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.6.0
Thread model: posix

cjrams commented Sep 18, 2016

Any idea the llvm version for clang-800.0.38?

hainesc commented Nov 18, 2016

Any idea with the llvm version for clang-800.0.38 and later?

@hainesc @cjrams I have the same question.

pkolbus commented Dec 17, 2016

A quick look at src/CMakeLists.txt on https://opensource.apple.com/ suggests that 800.0.38 and 800.0.42 are both based on the 3.9.0 branch:

if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 3)
endif()
if(NOT DEFINED LLVM_VERSION_MINOR)
set(LLVM_VERSION_MINOR 9)
endif()
if(NOT DEFINED LLVM_VERSION_PATCH)
set(LLVM_VERSION_PATCH 0)
endif()
if(NOT DEFINED LLVM_VERSION_SUFFIX)
set(LLVM_VERSION_SUFFIX svn)
endif()

minsko commented Jan 27, 2017

Xcode Version 8.3 beta (8W109m)
Apple LLVM version 8.1.0 (clang-802.0.27.2)
Target: x86_64-apple-darwin16.3.0
Thread model: posix

@pkolbus @mikemadden42 Also, configure.ac:

AC_INIT([LLVM],[3.9.0svn],[http://llvm.org/bugs/])

LLVM_VERSION_MAJOR=3
LLVM_VERSION_MINOR=9
LLVM_VERSION_PATCH=0
LLVM_VERSION_SUFFIX=svn

l2dy commented Apr 20, 2017

# Xcode 8.3.2 (8E2002)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Presumably Xcode 8.3 is based on LLVM 4.0 (based on past versioning patterns). Sources for clang-802.x.y are not up yet.

clouds56 commented Jun 5, 2017

why I cannot find https://opensource.apple.com/source/clang/clang-802.0.42? is it available anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment