Ce problème n'est pas lié à Clang 5.0 uniquement. J'ai le même problème avec un Clang 3.9 personnalisé. Xcode 9 a introduit un argument sur mesure qu'un Clang normal ne supporte pas:
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)
Source: Facebook/infer: Remove unsupported index-store-path
argument from clang commands.
Dans mon toolchain personnalisée basée sur Clang/CMake/Xcode-je utiliser un wrapper around clang où je coupe juste à côté de cet argument et le dossier lui a été transmis et tout fonctionne bien.
OK merci! Je vais essayer dès que possible. –
Ceci est en cours d'être en amont: https://reviews.llvm.org/D39050 – Jonas