Skip to content

Commit

Permalink
use legacy driver when generating index store output
Browse files Browse the repository at this point in the history
Summary:
The swift-driver enforces output paths are unique, and will fail when producing index store output with:
```
SwiftDriverExecution/MultiJobExecutor.swift:207: Fatal error: multiple producers
for output /dev/null: Compiling ...
```
For now force the legacy driver for index store output.

Reviewed By: drodriguez

Differential Revision: D68978696

fbshipit-source-id: 38c94f3202abbf13cb7cf07758ceab5c63462349
  • Loading branch information
rmaz authored and facebook-github-bot committed Feb 1, 2025
1 parent b35ed9a commit 10ab316
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prelude/apple/swift/swift_compilation.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ def _compile_index_store(
index_store_output.as_output(),
"-c",
"-disable-batch-mode",
"-disallow-use-new-driver",
])

_compile_with_argsfile(
Expand Down

0 comments on commit 10ab316

Please sign in to comment.