Commit 05c313e
authored
Change symlink error to warning (#3490)
Motivation: Symlinking oldBuildPath is not a vital step of swift build, but emitting an error will depress the run and test commands. This largely troubled Windows users, since symlinking requires elevated privileges on Windows.
Modifications: Codes of linking oldBuildPath is now wrapped with do-catch to capture the error and change it into a warning.
Result: If linking oldBuildPath fails, SwiftPM will emit a warning instead of an error.1 parent 9a52971 commit 05c313e
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
141 | 151 | | |
142 | | - | |
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
| |||
0 commit comments