[CrashReproducer] Handle indexing turned on with CLANG_PROJECT_INDEX_PATH.#354
[CrashReproducer] Handle indexing turned on with CLANG_PROJECT_INDEX_PATH.#354vsapsai wants to merge 1 commit intoapple:upstream-with-swiftfrom
Conversation
…PATH. Crash reproducer is checking the driver's arguments for `-index-store-path` and in case of the environment variable, this argument is absent. So the generated reproducer incorrectly won't run the indexer. Fix by checking the arguments of the failed -cc1 command for `-index-store-path`. rdar://problem/48830606
|
@swift-ci please test |
|
@vsapsai just wondering - how do we handle other environment variables in reproducers? Strictly speaking this isn't a 100% accurate reproducer (although for all practical purposes it shouldn't matter). |
Good question. Need to double check but my impression is that the reproducer contains |
Crash reproducer is checking the driver's arguments for
-index-store-pathand in case of the environment variable, thisargument is absent. So the generated reproducer incorrectly won't run
the indexer.
Fix by checking the arguments of the failed -cc1 command for
-index-store-path.rdar://problem/48830606