Commit 1c6ef57
authored
Compute path to
This takes a significant amount of time when the selected Xcode doesn't have a `swift-plugin-server` executable:
```
/tmp/exec
❯ time /usr/bin/xcrun --find swift-plugin-server
xcrun: error: sh -c '/Users/neonacho/Downloads/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Users/neonacho/Downloads/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -find swift-plugin-server 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "swift-plugin-server", not a developer tool or in PATH
/usr/bin/xcrun --find swift-plugin-server 0.34s user 0.17s system 32% cpu 1.579 total
```
Doing this on demand is at least gated on `self.buildParameters.toolchain.isSwiftDevelopmentToolchain` so it shouldn't happen for the primary usage scenario on macOS.
(cherry picked from commit de8e6e8)swift-plugin-server on demand (#6907)1 parent 71633ac commit 1c6ef57
File tree
4 files changed
+13
-17
lines changed- Sources
- Build/BuildDescription
- PackageModel
4 files changed
+13
-17
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
| |||
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | | - | |
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
67 | | - | |
68 | | - | |
| 63 | + | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
| |||
78 | 73 | | |
79 | 74 | | |
80 | 75 | | |
81 | | - | |
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
563 | 562 | | |
564 | 563 | | |
565 | | - | |
566 | 564 | | |
567 | 565 | | |
568 | | - | |
569 | 566 | | |
570 | 567 | | |
571 | 568 | | |
| |||
580 | 577 | | |
581 | 578 | | |
582 | 579 | | |
583 | | - | |
584 | | - | |
| 580 | + | |
585 | 581 | | |
586 | 582 | | |
587 | 583 | | |
| |||
655 | 651 | | |
656 | 652 | | |
657 | 653 | | |
658 | | - | |
659 | | - | |
| 654 | + | |
| 655 | + | |
660 | 656 | | |
661 | 657 | | |
662 | 658 | | |
| |||
787 | 783 | | |
788 | 784 | | |
789 | 785 | | |
| 786 | + | |
| 787 | + | |
790 | 788 | | |
791 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
792 | 794 | | |
793 | 795 | | |
0 commit comments