什么是我的LLVM& clang(OSX)? [英] What is my version of LLVM & clang (OSX)?

查看:122
本文介绍了什么是我的LLVM& clang(OSX)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OS上,如果我运行 clang --version ,我会得到:

On Mac OS, if I run clang --version, I get:

Apple LLVM version 6.0 (clang-600.0.34.4) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

LLVM官方网页建议当前的LLVM版本是3.5,似乎Apple clang版本与开源LLVM不同。输出(基于LLVM 3.5svn)表明可能在我的机器上也是3.5。

Since LLVM official page suggests that the current LLVM version is 3.5, it seems that Apple clang versioning is distinct from the open-source LLVM. The output (based on LLVM 3.5svn) suggests that probably it is 3.5 on my machine as well.

现在我来到这里,因为我想要编译一个C ++ 14文件,使用 g ++ -std = c ++ 14 main.cc 此页面表明此选项应该适用于clang 3.5。但是,它只适用于 -std = c ++ 1y ,它适用于clang 3.4或更早版本。

Now I got here since I wanted to compile a C++14 file, using g++ -std=c++14 main.cc. This page suggests that this option should work on clang 3.5. However, it works only with -std=c++1y, which works on clang 3.4 or earlier.

那么,什么是LLVM开源版本等同于苹果版本呢?它似乎是3.5,但为什么它不工作所以?

So what is LLVM open-source version equivalent for Apple's version? It seems 3.5 but then why it doesn't work so?

推荐答案

这是一个版本的llvm 3.5 svn分支官方3.5发布版本。

It is some Version of the llvm 3.5 svn branch before the official 3.5 release version.

意味着它可能应该具有3.4的所有功能加上一些3.5功能。

Meaning that it probably should have all features of 3.4 plus some of the 3.5 features.

这篇关于什么是我的LLVM& clang(OSX)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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