Create a gist now

Instantly share code, notes, and snippets.

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
@bendiken

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

@jakepetroules

Xcode 5 final release is clang-500.2.76

@yamaya
Owner
yamaya commented Sep 20, 2013

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

@MauricioCarneiro

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

@yamaya
Owner
yamaya commented Oct 18, 2014

I don't record the libc++.

@anders-sjogren

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

@yamaya
Owner
yamaya commented Mar 23, 2015

Thanks.

@anders-sjogren

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.

@karies
karies commented Jun 9, 2015

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

@yamaya
Owner
yamaya commented Jul 1, 2015

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

@hgonzalez94

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

@oscarbg
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

@LogicalKnight

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

@yamaya
Owner
yamaya commented Sep 17, 2015

Thanks @LogicalKnight.

@minsko
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
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

@yamaya
Owner
yamaya commented Oct 22, 2015

Thanks @minsko

@JohnDDuncanIII

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
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
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
ikantor commented Nov 18, 2015

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

@socantre
socantre commented Dec 9, 2015

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

@bobsummerwill

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

@nlutsenko

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

@socantre

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.

@jin-serato

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
XVilka commented Mar 22, 2016

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

@lasote
lasote commented Mar 23, 2016

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

@oasisweng

Which version of LLVM is Apple LLVM 7.3 based on?

@gusc
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)

@Placinta

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
elaijuh commented May 18, 2016

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

@zrax
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
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
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
cjrams commented Sep 18, 2016

Any idea the llvm version for clang-800.0.38?

@hainesc
hainesc commented Nov 18, 2016

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

@vitonzhang

@hainesc @cjrams I have the same question.

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