Commit aae0cab
authored
Deduplicate plugin arguments (#1495)
Currently, if we have the following setup,
```
swift_library (
name = "LibA"
plugins = ["//:Macros"],
)
swift_library (
name = "LibB"
plugins = ["//:Macros"],
deps = [":LibA"],
)
```
We would see `-load-plugin-executable /path/to/Macros#Macros` twice
while compiling LibB. With a more complicated dependency graph, we are
seeing hundreds of -load-plugin-executable of the same plugin on some
modules.
This PR deduplicates the plugins arguments.1 parent b7eb892 commit aae0cab
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
648 | | - | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
0 commit comments