Emscripten 1.34.1问题 [英] Emscripten 1.34.1 Issue

查看:59
本文介绍了Emscripten 1.34.1问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Emscripten版本1.29.0中一切正常,但是升级到1.34.1后,出现以下错误:

Things were working fine in an Emscripten build 1.29.0 but after upgrading to 1.34.1, I get the following error:

1>  Traceback (most recent call last):
1>    File "C:\Program Files\Emscripten\emscripten\1.34.1\\emcc", line 1260, in <module>
1>      shared.Building.llvm_opt(final, link_opts)
1>    File "C:\Program Files\Emscripten\emscripten\1.34.1\tools\shared.py", line 1429, in llvm_opt
1>      assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
1>  AssertionError: Failed to run llvm optimizations: 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.Targets(117,5): error MSB6006: "C:\Program Files\Emscripten\emscripten\1.34.1\emcc.bat" exited with code 1.

一个令人担忧的原因是从变更日志中读取此行,然后如果不使用以下内容(我正在使用VS2010),则不知道该方法是什么或该过程是什么:

One cause for concern was reading this line from changelog, and then not knowing what the approach was or the process was if the following was not being used (I'm using VS2010):

 - Enabled native JS optimizer to be built automatically on Windows, requires VS2012 or VS2013. 

如果有人在卸载并重新安装所有内容和清洁源后知道为什么事情不起作用,那么请告诉我!

If anyone would know why things don't work, after uninstalling and re-installing everything and cleaning source, then please let me know!

推荐答案

这似乎是1.34.1中的回归.我有完全相同的问题.升级到1.34.6后,错误消失了.我没有哪个提交修复它,但我建议您也将其更新到1.34.6 +.

This appear to be a regression in 1.34.1. I had the exact same issue. After upgrading to 1.34.6 the error went away. I don't which commit fixed it but I would suggest you also update to 1.34.6+.

这篇关于Emscripten 1.34.1问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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