Commit e198274
authored
[6.2][PackageModel] Toolchain: A few fixes for features supported by Swift compiler (swiftlang#8762)
- Explanation:
`swift package migrate` is broken when used with older toolchains.
- Fix "supported features" parsing with older toolchains.
`-print-supported-features` flag used to output "enabled_in" version as
an integer (major only).
- Handle absence of optional features section. `JSON.get` would throw if
the key couldn't be found, let's handle that gracefully for an optional
"optional features" section.
- Main Branch PR:
swiftlang#8761
- Risk: Low (only `swift package migrate` is affected by this changes).
- Resolves: rdar://152533205
- Reviewed By: @dschaefer2
- Testing: Updated existing tests in the suite, added new test-cases.1 parent 436c2c9 commit e198274
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | | - | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
0 commit comments