2017-10-12 88 views

回答

2

这不是一个铿锵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中,我只是切断了这种说法和文件夹传递给它,一切工作正常。

+0

好的,谢谢!我会尽快尝试。 –

+1

这是正在成为流行的过程:https://reviews.llvm.org/D39050 – Jonas