Whats is proper version of llvm/clang/xcode?

旧巷老猫 提交于 2019-12-18 13:54:10

问题


This gist mentions that xcode 9 published with 'Apple LLVM version 9.0.0 (clang-900.0.38)', but the last version of llvm in llvm.org is LLVM 5.0.0.
What is the relation between them?


回答1:


Apple's Xcode ship with LLVM, but it is not the open source version. For example, some clang extra tool won't be installed to you Mac. So at least, Apple has modify CMakeLists.txt. You can read the CMakeLists.txt or Makefile in apple open source.

This is only a suggestion, maybe is not helpful.

Another: index.file shows Xcode LLVM 9 map to Clang/LLVM 4.0.




回答2:


You can obtain the source code for the compiler shipped with Xcode from https://opensource.apple.com if you want to have the exact same version of LLVM.



来源:https://stackoverflow.com/questions/46955807/whats-is-proper-version-of-llvm-clang-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!