Commit a746b8f
refactor: make bzlmod pass platform mapping to host repo creation (#2889)
This makes bzlmod pass the platform metadata to the host_toolchain rule
instead of
the host toolchain rule using the fixed PLATFORMS global.
This allows the bzlmod extension to modify the platforms that are
available, where the
fixed PLATFORM global can't be changed.
Work towards #2081
---------
Co-authored-by: Ignas Anikevicius <[email protected]>1 parent c7efa25 commit a746b8f
2 files changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
| |||
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
320 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
321 | 326 | | |
322 | 327 | | |
323 | 328 | | |
324 | 329 | | |
325 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
326 | 333 | | |
327 | 334 | | |
328 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
| |||
436 | 446 | | |
437 | 447 | | |
438 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
439 | 460 | | |
440 | 461 | | |
441 | | - | |
| 462 | + | |
442 | 463 | | |
443 | 464 | | |
444 | 465 | | |
| |||
0 commit comments