Xcode9似乎不支持3rd llvm编译器?
问题描述:
将默认的Apple-LLVM替换为从llvm.org下载的LLVM 5.0。 和编译,Xcode中抛出一个错误:Xcode9似乎不支持3rd llvm编译器?
clang-5.0: error: cannot specify -o when generating multiple output files
Xcode8是OK。
谢谢。
答
这不是一个铿锵5.0只问题。我与自定义的Clang 3.9有同样的问题。 的Xcode 9还引入了一个正常锵不支持自定义参数:
The
-index-store-path
argument does not exist in Clang 5.0 and it gets discarded without any error message. The problem is that its argument, a folder, is not discarded, and Clang considers it as a source file. This leads to the following errors:
cannot specify -o when generating multiple output files
(this happens if a-o
argument is passed)error reading '<PATH>'
(this can be observed when running the "normalized" version of the clang command, generated via the -### flag)
来源:Facebook/infer: Remove unsupported index-store-path
argument from clang commands。
在基于锵/ CMake的/我的Xcode工具链定制我使用wrapper around clang中,我只是切断了这种说法和文件夹传递给它,一切工作正常。
好的,谢谢!我会尽快尝试。 –
这是正在成为流行的过程:https://reviews.llvm.org/D39050 – Jonas