Commit 7b09e86
authored
Enable semanticdb phase during plugin bootstrapping (#1830)
* Enable semanticdb phase during plugin bootstrapping
scala_library_for_plugin_bootstrapping skipped phase_semanticdb, so
when a toolchain sets enable_semanticdb=True and includes a
-P:semanticdb:... scalacopt (e.g. -P:semanticdb:synthetics:on), the
bootstrap compilation of the dep analyzer plugin received the flag but
had no semanticdb plugin loaded, causing scalac to fail with
"bad option: -P:semanticdb:synthetics:on".
Unconditionally run phase_semanticdb in the bootstrap phase list so the
plugin jar is loaded whenever the toolchain enables semanticdb.
Adds a regression test that builds with a synthetics-enabled semanticdb
toolchain to verify the bootstrap path handles these scalacopts.1 parent 3d7cbe2 commit 7b09e86
3 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
180 | 192 | | |
181 | 193 | | |
182 | 194 | | |
| |||
191 | 203 | | |
192 | 204 | | |
193 | 205 | | |
| 206 | + | |
194 | 207 | | |
195 | 208 | | |
196 | 209 | | |
0 commit comments