Skip to content

Instantly share code, notes, and snippets.

Embed
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
# Xcode 9.0 (9A235)
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.0.1 (9A1004)
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.1 (9B55)
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.2 (9C40b)
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.3 (9E145) and 9.3.1 (9E501)
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.4 (9F1027a) and 9.4.1 (9F2000)
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10 beta (10L176w)
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /path/to/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.0 (10A255)
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.1 (10B61)
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.2 (10E125)
Apple LLVM version 10.0.1 (clang-1001.0.46.3)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.2.1 (10E1001)
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.0 beta (11M336w)
Apple clang version 11.0.0 (clang-1100.0.20.17)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: $HOME/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.3 (10G8)
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.0 (11A420a)
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.1 (11A1027)
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@artob

This comment has been minimized.

Copy link

commented Mar 19, 2013

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

@jakepetroules

This comment has been minimized.

Copy link

commented Sep 18, 2013

Xcode 5 final release is clang-500.2.76

@yamaya

This comment has been minimized.

Copy link
Owner Author

commented Sep 20, 2013

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

@MauricioCarneiro

This comment has been minimized.

Copy link

commented Oct 14, 2014

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

@yamaya

This comment has been minimized.

Copy link
Owner Author

commented Oct 18, 2014

I don't record the libc++.

@anders-sjogren

This comment has been minimized.

Copy link

commented Mar 10, 2015

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

This comment has been minimized.

Copy link
Owner Author

commented Mar 23, 2015

Thanks.

@anders-sjogren

This comment has been minimized.

Copy link

commented Apr 9, 2015

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.

@Axel-Naumann

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner Author

commented Jul 1, 2015

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

@hggz

This comment has been minimized.

Copy link

commented Aug 25, 2015

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

@oscarbg

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Sep 17, 2015

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

This comment has been minimized.

Copy link
Owner Author

commented Sep 17, 2015

Thanks @LogicalKnight.

@minsko

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner Author

commented Oct 22, 2015

Thanks @minsko

@JohnDDuncanIII

This comment has been minimized.

Copy link

commented Oct 29, 2015

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Nov 18, 2015

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

@socantre

This comment has been minimized.

Copy link

commented Dec 9, 2015

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

@bobsummerwill

This comment has been minimized.

Copy link

commented Jan 14, 2016

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

This comment has been minimized.

Copy link

commented Jan 28, 2016

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

@nlutsenko

This comment has been minimized.

Copy link

commented Jan 28, 2016

@socantre

This comment has been minimized.

Copy link

commented Jan 28, 2016

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

This comment has been minimized.

Copy link

commented Mar 22, 2016

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

This comment has been minimized.

Copy link

commented Mar 22, 2016

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

@lasote

This comment has been minimized.

Copy link

commented Mar 23, 2016

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

@oasisweng

This comment has been minimized.

Copy link

commented Apr 4, 2016

Which version of LLVM is Apple LLVM 7.3 based on?

@gusc

This comment has been minimized.

Copy link

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)

@alcroito

This comment has been minimized.

Copy link

commented May 11, 2016

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

This comment has been minimized.

Copy link

commented May 18, 2016

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

@zrax

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Sep 14, 2016

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

@cjrams

This comment has been minimized.

Copy link

commented Sep 18, 2016

Any idea the llvm version for clang-800.0.38?

@hainesc

This comment has been minimized.

Copy link

commented Nov 18, 2016

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

@vitonzhang

This comment has been minimized.

Copy link

commented Nov 29, 2016

@hainesc @cjrams I have the same question.

@pkolbus

This comment has been minimized.

Copy link

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()

@mikemadden42

This comment has been minimized.

Copy link

commented Dec 30, 2016

@minsko

This comment has been minimized.

Copy link

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

@oktal3700

This comment has been minimized.

Copy link

commented Feb 10, 2017

@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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented May 11, 2017

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

This comment has been minimized.

Copy link

commented Jun 5, 2017

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

@epipping

This comment has been minimized.

Copy link

commented Jul 4, 2017

@oasisweng I've put together a script that maps Developer Tools releases(*) to the upstream llvm branch that the version of clang it ships with is based on. You can find it here.

(*) only those for which Apple has made the source code publicly available, naturally

@webmaster128

This comment has been minimized.

Copy link

commented Jul 31, 2017

@jakepetroules, Looks like current Apple clang 802 does not yet support new clang 4.0 command line flags:

$ clang++ -v              
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ clang++ -MJ -c empty.cpp
clang: error: unknown argument: '-MJ'

$ clang++ -Og -c empty.cpp
error: invalid integral value 'g' in '-Og'
error: invalid integral value 'g' in '-Og'

This indicates, 802 is still based on 3.9.

@niosus

This comment has been minimized.

Copy link

commented Aug 8, 2017

Hey guys, does anybody know what version is Apple clang 9.0 based on? Did they move to 4.0?

@ngaurav

This comment has been minimized.

Copy link

commented Aug 15, 2017

Yes they did. Some c++17 features which are only supported on CLANG 4.0 are working with xcode 9 and they were not working on xcode 8.3
Infact I am hoping for a complete c++17 support with xcode 9 adopting CLANG 5.0 till the time it comes of beta.

@noloader

This comment has been minimized.

Copy link

commented Aug 21, 2017

Does anyone know which Apple Clang and Xcode corresponds to LLVM Clang 5.0?

We need LLVM Clang 5.0 or above to use Intel ADX intrinsics. However, LLVM 3.9 and 4.0 crash on the ADX intrinsic. We need the equivalent guard for Apple Clang and Xcode.

@webmaster128

This comment has been minimized.

Copy link

commented Sep 6, 2017

@niosus, yes, Apple LLVM version 9.0.0 (clang-900.0.35) from Xcode 9 beta 6 is based on at least clang 4.0 as it supports the new flags -MJ and -Og.

@LamboPita

This comment has been minimized.

Copy link

commented Sep 8, 2017

@noloader, Clang 5.0 officially released yesterday. Apple is only now testing clang 4.0 in beta xcode. It will probably be several months before Apple implements clang 5.0 in their machines.

@username0x0a

This comment has been minimized.

Copy link

commented Oct 3, 2017

Xcode 9.0 App Store release

Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@LogicalKnight

This comment has been minimized.

Copy link

commented Oct 17, 2017

Another update (9.0.1):

Xcode 9.0.1 (9A1004)

Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@xelzmm

This comment has been minimized.

Copy link

commented Oct 19, 2017

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

@dennisfrett

This comment has been minimized.

Copy link

commented Nov 2, 2017

Xcode Version 9.1 (9B55)

Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@jblazquez

This comment has been minimized.

Copy link

commented Nov 8, 2017

Xcode 9.2 beta 2 (9C34b)

Apple LLVM version 9.0.0 (clang-900.0.39)
Target: x86_64-apple-darwin17.0.0
Thread model: posix
@qzmfranklin

This comment has been minimized.

Copy link

commented Nov 28, 2017

Found this post via Google.

Just a quick question:
Recent Apple LLVM versions are no longer associated with any particular LLVM SVN versions. What is the status? Can I install llvm+clang from an SVN build and use it on macOS? I know this use case sounds strange, but just curious.

@boris-kolpackov

This comment has been minimized.

Copy link

commented Dec 15, 2017

So the (conservative) mapping of Apple to LLVM versions would be:

5.1 -> 3.4
6.0 -> 3.5
7.0 -> 3.7
7.3 -> 3.8
8.0 -> 3.9
9.0 -> 4.0 (later ones could be 5.0?)
@zbleyen

This comment has been minimized.

Copy link

commented Jan 29, 2018

9.2 -> 5.0 is OK,while 4.0 is not

@jblazquez

This comment has been minimized.

Copy link

commented Jan 31, 2018

Xcode 9.3 beta 1 (9Q98q)

Apple LLVM version 9.1.0 (clang-902.0.30)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
@douglasdavis

This comment has been minimized.

Copy link

commented Mar 30, 2018

Xcode and command line tools 9.3 have been released.

Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
@Jakitto

This comment has been minimized.

Copy link

commented May 14, 2018

Xcode 8.2.1

PACKAGE_NAME='LLVM'
PACKAGE_TARNAME='llvm'
PACKAGE_VERSION='3.9.0svn'
PACKAGE_STRING='LLVM 3.9.0svn'
PACKAGE_BUGREPORT='http://llvm.org/bugs/'
@rsfinn

This comment has been minimized.

Copy link

commented May 29, 2018

Xcode Version 9.4 (9F1027a)

released May 29, 2018

Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
@jblazquez

This comment has been minimized.

Copy link

commented Jun 4, 2018

Xcode 10.0 beta (10L176w)

Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
@tillt

This comment has been minimized.

Copy link

commented Jun 22, 2018

Xcode 10.0 beta 2 (10L177m)

Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin18.0.0
Thread model: posix

So apparently they did not bump clang between the beta versions - I am just posting for having a complete Xcode version to clang version record.

@boris-kolpackov

This comment has been minimized.

Copy link

commented Jun 23, 2018

Anyone has any idea what the Apple Clang to Vanilla Clang version mappings are for 9.1.0 and 10.0.0? I realize Apple may be taking code between releases but it would be nice to at least establish lower bounds (for example, "9.1.0 is at least 5.0" or some such).

@rsfinn

This comment has been minimized.

Copy link

commented Jul 4, 2018

Xcode 10 beta 3 (10L201y)

Apple LLVM version 10.0.0 (clang-1000.10.38)
Target: x86_64-apple-darwin17.6.0
Thread model: posix

Note that the clang version was advanced in beta 3, unlike in beta 2.

@xelzmm

This comment has been minimized.

Copy link

commented Aug 11, 2018

Xcode 10.0 beta 4 (10L213o)

Apple LLVM version 10.0.0 (clang-1000.10.40.1)

Xcode 10.0 beta 6 (10L232m)

Apple LLVM version 10.0.0 (clang-1000.10.43.1)

clang version advanced again.

@xelzmm

This comment has been minimized.

Copy link

commented Aug 11, 2018

I believe xcode clang-9.1.0 is based on llvm 6.0.0 and xcode clang-10.0.0 is based on llvm 7.0, but not associated with any commits in the community version of llvm. the bitcode formats are diverged.

You can build your own llvm/cfe and use them in xcode under any workable version(e.g. no unresolvable syntax or unresolvable command line parameters) without bitcode enabled, since the bitcode would reject by AppStore.

@boris-kolpackov

@donbright

This comment has been minimized.

Copy link

commented Aug 20, 2018

@boris-kolpackov i may be wrong but I tried to find this by comparing header files... . step 0, install Xcode command line tools, step 1, download several versions of clang source code (cfe*) from http://releases.llvm.org/download.html and unpack with tar xf , step2, open terminal, cd to Downloads, then run recursive diff showing which files changed:

donbright@Macs-MacBook:~/Downloads$ diff -qr cfe-4.0.1.src/lib/Headers /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include

donbright@Macs-MacBook:~/Downloads$ diff -qr cfe-5.0.2.src/lib/Headers /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include

donbright@Macs-MacBook:~/Downloads$ diff -qr cfe-6.0.1.src/lib/Headers /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include

If this method is correct (big if), it seems that 9.1.0 is very close to 5.0.2, much closer than 4 or 6, which have dozens of files differing, while 5.0.2 only differs by cuda, arm_neon.h, CMakeLists, and sanitizer.

@boris-kolpackov

This comment has been minimized.

Copy link

commented Sep 10, 2018

@donbright Yes, that's the idea we had as well. One particularly informative header is libc++'s __config which defines the _LIBCPP_VERSION macro. For 9.1.0 it is 5000 which suggests it is from somewhere in the 5-series line. While for 10.0.0 (from Beta 6) it is 6000.

@rsfinn

This comment has been minimized.

Copy link

commented Sep 12, 2018

Xcode 10 GM (10A254a)

Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix

Note that the target has changed as well. _LIBCPP_VERSION remains 6000.

@oktal3700

This comment has been minimized.

Copy link

commented Oct 21, 2018

Another approach is to observe that Xcode 9 ships with swift 4.1, and at https://github.com/apple/swift-llvm/blob/swift-4.1-branch/CMakeLists.txt we can see:

if(NOT DEFINED LLVM_VERSION_MAJOR)
  set(LLVM_VERSION_MAJOR 5)
endif()
if(NOT DEFINED LLVM_VERSION_MINOR)
  set(LLVM_VERSION_MINOR 0)
endif()
if(NOT DEFINED LLVM_VERSION_PATCH)
  set(LLVM_VERSION_PATCH 2)
endif()

Using this technique provides the following tentative version mapping:

Xcode 8.3  --> swift 3.1 --> llvm 4.0.0
Xcode 9.0  --> swift 4.0 --> llvm 4.0.0
Xcode 9.3  --> swift 4.1 --> llvm 5.0.2
Xcode 10.0 --> swift 4.2 --> llvm 6.0.1
@xelzmm

This comment has been minimized.

Copy link

commented Oct 31, 2018

Xcode 10.1 (10B61)

Apple LLVM version 10.0.0 (clang-1000.11.45.5)
@xelzmm

This comment has been minimized.

Copy link

commented Nov 8, 2018

Apple release source code of various versions of xcode recently. but clang was omitted since xcode 8.3

see https://opensource.apple.com/

@maromato

This comment has been minimized.

Copy link

commented Jan 5, 2019

Hi There is something strange happens in my Xcode on MacBook pro.
I tried to update Command Line Tool to the latest version.
All of the sudden, the clang version became strange.

$ clang --version
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-apple-darwin18.2.0
Thread model: posix

$ llvm-g++ --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix

I tried to update command line tool or Xcode several times but it did not work?
Does anybody have any idea to fix this?

Thx

@benfed

This comment has been minimized.

Copy link

commented Mar 25, 2019

Version 10.2 beta 4 (10P107d)

Apple LLVM version 10.0.1 (clang-1001.0.46.2)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@YsHaNgM

This comment has been minimized.

Copy link

commented Mar 29, 2019

If you installed clion, in its preference-toolchains, you might see 'debugger' as 'bundled LLDB 7.0.1'. I believe this is the current Apple clang version. (eg.Apple LLVM version 10.0.1)

@jblazquez

This comment has been minimized.

Copy link

commented Jun 3, 2019

Version 11.0 beta 1 (11M336w)

Apple clang version 11.0.0 (clang-1100.0.20.17)
Target: x86_64-apple-darwin18.6.0
Thread model: posix

@rsfinn

This comment has been minimized.

Copy link

commented Oct 3, 2019

Xcode 11.2 beta 1 (11B41)

Apple clang version 11.0.0 (clang-1100.0.33.9)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.