如何更新LLVM&在Mac OSX上?? [英] How to update LLVM & Clang on Mac OSX?

查看:1082
本文介绍了如何更新LLVM&在Mac OSX上??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Mac OSX版本(Lion 10.7.1,XCode 4.1)上,有LLVM 3.0svn和Clang 2.1。
当前版本是LLVM 3.0和Clang 3.0。

On my version of Mac OSX (Lion 10.7.1, XCode 4.1), there is LLVM 3.0svn and Clang 2.1. The current versions are LLVM 3.0 and Clang 3.0.

XCode网站,似乎最新版本4.2.1)仍然使用LLVM 2.0,这似乎是一个错误。

From the XCode web site, it seems that the latest version (4.2.1) still uses LLVM 2.0, and this seems to be a mistake.

你知道如果安装最新的XCode我会得到一个更新版本的LLVM / Clang?

Do you know if installing the latest XCode I will get a more recent version of LLVM/Clang?

您知道任何可能的问题手动安装Clang

Do you know of any possible issues installing Clang manually?

安装后,所有的IDE(例如NetBeans)会自动使用新的Clang吗?

Once installed, will the new Clang be used automatically by all the IDEs I have (e.g. NetBeans)?

谢谢大家新年快乐!

推荐答案

软件供应商对于更新构建工具传统上保守,有很好的理由。如果你想使用由Apple提供和修改的最新的公开支持版本的构建工具,你应该坚持使用你正在运行的OS X版本的最新版Xcode。通常有很好的理由为什么苹果还没有更新到最新的前沿版本的开源组件,如严重的错误。如果你不需要苹果提供的修改,不介意生活在边缘 - 即没有苹果的支持,可能(重)发现已知的问题,并且不计划将编译的文件发送到其他人的系统,你可以 / usr / local / bin 中安装您自己的版本,或使用第三方软件包管理器(如MacPorts http://www.macports.org/ports.php?by=name&substr=clang )。您应该肯定尝试替换由Xcode安装的路径下的文件。这值得么?只有您可以决定。

Software vendors are traditionally conservative about updating build tools and with good reason. If you want to use the latest publicly-supported versions of build tools supplied and modified by Apple, you should stick to those in the latest version of Xcode for the OS X release you are running. There are usually good reasons why Apple has not yet updated to the latest cutting-edge versions of open source components, like serious bugs. If you don't need the Apple-supplied modifications and don't mind living on the edge - i.e. no support from Apple and possibly (re-)discovering known problems - and are not planning to ship compiled files to other people's systems, you could install your own versions in, say, /usr/local/bin or by using third-party package managers, like MacPorts http://www.macports.org/ports.php?by=name&substr=clang). You should definitely not try to replace the files at the paths installed by Xcode. Is it worth it? Only you can decide that.

这篇关于如何更新LLVM&在Mac OSX上??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆