forked from bazelbuild/rules_swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incremental compilation with derived files (bazelbuild#700)
For incremental compilation we pass an output file map to compile actions. Since we have 2 actions with the derived files feature, they were fighting to write the same set of files. In this case we now pass a separate output file map to the derived files action that only contains the swiftmodules, and one that only contains the objects to the standard compile. In addition, the derived files action uses a separate staging directory, as the various `swiftdeps` and `priors` files conflict. Finally, we only set `incremental_inputs` for the swift module producing action.
- Loading branch information
1 parent
a430f3b
commit 1820910
Showing
4 changed files
with
124 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters