最新的脚本使用什么版本的LLVM? [英] What version of LLVM does the latest emscripten use?

查看:122
本文介绍了最新的脚本使用什么版本的LLVM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新的 emscripten 使用什么版本的LLVM? 我用了一段时间的谷歌搜索,但找不到任何信息.背景是我有一些需要clang-5.0的C ++代码-用emscripten编译的机会是多少?还是至少需要clang-4.0的代码?

What version of LLVM does the latest emscripten use? I googled for this quite a while but could not find any info. The background is that I've got some C++ code that requires clang-5.0 - what are the chances that it would compile with emscripten? Or at least code that needs clang-4.0?

推荐答案

emscripten的最新版本使用clang版本4:

The latest version of emscripten uses clang version 4:

$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.37.21
clang version 4.0.0 (https://github.com/kripken/emscripten-fastcomp-clang.git 974b55fd84ca447c4297fc3b00cefb6394571d18) (https://github.com/kripken/emscripten-fastcomp.git 087c6b7b18b7b769d4ad8f2ac3e0dd0ae6b924c2) (emscripten 1.37.21 : 1.37.21)
Target: x86_64-apple-darwin16.7.0
Thread model: posix

但是,您可以分别使用clang,llc,s2wasm和wasm工具作为已记录在本要点中.

However, you can build WebAssembly without emscripten, by using the clang, llc, s2wasm and wasm tools separately as documented in this gist.

另一个不错的选择是wasm-toolchain项目:

Another good alternative is the wasm-toolchain project:

https://github.com/tpimh/wasm-toolchain

安装此程序后,我将使用clang版本6:

With this installed, I have clang version 6:

$ ./clang --version
clang version 6.0.0 (http://llvm.org/git/clang.git 9411957410813aeefc1bb299abcb856ce1ef8aae) (http://llvm.org/git/llvm.git 68b21d6108df63d65d6735e9686d53cca844e37a)
Target: x86_64-apple-darwin16.7.0
Thread model: posix

这篇关于最新的脚本使用什么版本的LLVM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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