2017-10-12 92 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