Commit 6aac73a
committed
Runtimes: propagate SwiftRT objects via swiftCore
Runtime clients of swiftCore need the SwiftRT image-registration object on
their link lines. On COFF this object supplies pSwiftImageConstructor and
the .sw5* section range symbols used to register Swift metadata and
conformances for each image.
CMake propagates usage requirements when an OBJECT library appears in an
INTERFACE_LINK_LIBRARIES chain, but it does not add that object's payload
to the final consumer link line. Keep the swiftrt targets in the interface
for their usage requirements, and explicitly propagate their object files
with TARGET_OBJECTS.1 parent 7413e0b commit 6aac73a
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
356 | 362 | | |
357 | 363 | | |
358 | | - | |
| 364 | + | |
| 365 | + | |
359 | 366 | | |
360 | 367 | | |
361 | 368 | | |
362 | | - | |
| 369 | + | |
| 370 | + | |
363 | 371 | | |
364 | 372 | | |
365 | | - | |
| 373 | + | |
| 374 | + | |
366 | 375 | | |
367 | 376 | | |
368 | 377 | | |
| |||
0 commit comments