【发布时间】:2019-09-24 06:32:48
【问题描述】:
我尝试在 Windows 下构建 SpiderMonkey。我遵循https://wiki.mozilla.org/JavaScript:New_to_SpiderMonkey下的文档
不同的是,我使用当前的 VS 15.9.11 而不是旧的 15.8。
如果我尝试在 Mozilla 构建 shell 中调用 configure,那么它找不到 c 编译器:
Winuser@Winuser /c/workspace-cpp/spidermonkey/js/src/build_DBG.OBJ
$ ../configure --enable-debug --disable-optimize
Reexecuting in the virtualenv
checking for vcs source checkout... hg
checking for a shell... C:/mozilla-build/msys/bin/sh.exe
checking for host system type... x86_64-pc-mingw32
checking for target system type... x86_64-pc-mingw32
checking for Python 3... C:/mozilla-build//python3/python3.exe (3.6.5)
checking for hg... c:/mozilla-build/python/Scripts/hg.exe
checking for Mercurial version... 4.5.3
checking for sparse checkout... no
checking whether cross compiling... no
checking for yasm... c:/mozilla-build/bin/yasm.exe
checking yasm version... 1.3.0
checking for the target C compiler... not found
DEBUG: _cc: Trying clang-cl
DEBUG: _cc: Trying gcc
DEBUG: _cc: Trying clang
ERROR: Cannot find the target C compiler
Mozilla 构建 shell 在哪里搜索 C 编译器?问题的原因可能是什么? 3 个可能的 C 编译器中的哪一个来自 VS?
【问题讨论】:
标签: windows visual-studio build spidermonkey