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

This comment has been minimized.

artob 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.

jakepetroules commented Sep 18, 2013

Xcode 5 final release is clang-500.2.76

@yamaya

This comment has been minimized.

Owner

yamaya commented Sep 20, 2013

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

@MauricioCarneiro

This comment has been minimized.

MauricioCarneiro 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.

Owner

yamaya commented Oct 18, 2014

I don't record the libc++.

@anders-sjogren

This comment has been minimized.

anders-sjogren 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.

Owner

yamaya commented Mar 23, 2015

Thanks.

@anders-sjogren

This comment has been minimized.

anders-sjogren 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.

Axel-Naumann 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.

Owner

yamaya commented Jul 1, 2015

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

@hggz

This comment has been minimized.

hggz 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.

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

This comment has been minimized.

LogicalKnight 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.

Owner

yamaya commented Sep 17, 2015

Thanks @LogicalKnight.

@minsko

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Owner

yamaya commented Oct 22, 2015

Thanks @minsko

@JohnDDuncanIII

This comment has been minimized.

JohnDDuncanIII 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.

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

This comment has been minimized.

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

This comment has been minimized.

ikantor commented Nov 18, 2015

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

@socantre

This comment has been minimized.

socantre 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.

bobsummerwill 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.

nlutsenko 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.

nlutsenko commented Jan 28, 2016

@socantre

This comment has been minimized.

socantre 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.

jin-serato 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.

XVilka commented Mar 22, 2016

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

@lasote

This comment has been minimized.

lasote 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.

oasisweng commented Apr 4, 2016

Which version of LLVM is Apple LLVM 7.3 based on?

@gusc

This comment has been minimized.

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

This comment has been minimized.

Placinta 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.

elaijuh commented May 18, 2016

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

@zrax

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

LogicalKnight 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.

cjrams commented Sep 18, 2016

Any idea the llvm version for clang-800.0.38?

@hainesc

This comment has been minimized.

hainesc commented Nov 18, 2016

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

@vitonzhang

This comment has been minimized.

vitonzhang commented Nov 29, 2016

@hainesc @cjrams I have the same question.

@pkolbus

This comment has been minimized.

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

@mikemadden42

This comment has been minimized.

mikemadden42 commented Dec 30, 2016

@minsko

This comment has been minimized.

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

@oktal3700

This comment has been minimized.

oktal3700 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.

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

This comment has been minimized.

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

clouds56 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.

epipping 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.

webmaster128 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.

niosus 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.

ngaurav 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.

noloader 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.

webmaster128 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.

LamboPita 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.

@michalzelinka

This comment has been minimized.

michalzelinka 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.

LogicalKnight 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.

xelzmm commented Oct 19, 2017

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

@dennisfrett

This comment has been minimized.

dennisfrett 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.

jblazquez 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.

qzmfranklin 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.

boris-kolpackov 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.

zbleyen commented Jan 29, 2018

9.2 -> 5.0 is OK,while 4.0 is not

@jblazquez

This comment has been minimized.

jblazquez 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
@drdavis

This comment has been minimized.

drdavis 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.

Jakitto 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.

rsfinn 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.

jblazquez 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.

tillt 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.

boris-kolpackov 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.

rsfinn 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.

xelzmm 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.

xelzmm 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.

donbright 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.

boris-kolpackov 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.

rsfinn 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.

oktal3700 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.

xelzmm 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.

xelzmm 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/

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