-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Wrapper for `ctx.actions.write` which attaches dependencies. I think `ctx.actions.write(with_inputs=True)` could be used, but it does not work properly, a comment says "This will only work for bound artifacts". I don't know if we can fix it, if we do, we can inline this function back. This function is slightly more expensive than using `write` directly (we create extra `cmd_args`), but - how much, depends on what you are doing (see benchmark below) - we will win it back when we make `cmd_args` immutable Used it in `prelude/android`, because this is what I migrate now from `cmd_args.hidden()` calls. Reviewed By: blackm00n Differential Revision: D58041951 fbshipit-source-id: 219664061bef3f145ccc719a4e839ddf3376d627
- Loading branch information
1 parent
f7bc2f6
commit bd99fc8
Showing
10 changed files
with
73 additions
and
62 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
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
Oops, something went wrong.