Commit 6a2278f
committed
[cxx-interop] Make test discovery compatible with C++ interop
If a Swift module is built with C++ interop enabled, all of its dependencies must also be built with C++ interop enabled.
Swift packages that use test discovery get a synthesized "PackageDiscoveredTests" target which is built by SwiftPM when someone runs `swift test` command. This module is currently always built without C++ interop, which is causing issues for projects that rely on it.
This patch makes sure that the `-cxx-interoperability-mode=` command line flag gets propagated to the test discovery target.
rdar://117078320 / resolves #69901 parent 1eb64ab commit 6a2278f
File tree
2 files changed
+35
-1
lines changed- Sources/Build/BuildDescription
- Tests/BuildTests
2 files changed
+35
-1
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
541 | 560 | | |
542 | 561 | | |
543 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3556 | 3556 | | |
3557 | 3557 | | |
3558 | 3558 | | |
| 3559 | + | |
3559 | 3560 | | |
3560 | 3561 | | |
3561 | 3562 | | |
| |||
3566 | 3567 | | |
3567 | 3568 | | |
3568 | 3569 | | |
| 3570 | + | |
3569 | 3571 | | |
3570 | 3572 | | |
3571 | 3573 | | |
| |||
3606 | 3608 | | |
3607 | 3609 | | |
3608 | 3610 | | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
3609 | 3617 | | |
3610 | 3618 | | |
3611 | 3619 | | |
| |||
3682 | 3690 | | |
3683 | 3691 | | |
3684 | 3692 | | |
| 3693 | + | |
3685 | 3694 | | |
3686 | 3695 | | |
3687 | 3696 | | |
| |||
3695 | 3704 | | |
3696 | 3705 | | |
3697 | 3706 | | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
3698 | 3710 | | |
3699 | 3711 | | |
3700 | 3712 | | |
| |||
3739 | 3751 | | |
3740 | 3752 | | |
3741 | 3753 | | |
| 3754 | + | |
3742 | 3755 | | |
3743 | 3756 | | |
3744 | 3757 | | |
| |||
3794 | 3807 | | |
3795 | 3808 | | |
3796 | 3809 | | |
| 3810 | + | |
3797 | 3811 | | |
3798 | 3812 | | |
3799 | 3813 | | |
| |||
3836 | 3850 | | |
3837 | 3851 | | |
3838 | 3852 | | |
| 3853 | + | |
3839 | 3854 | | |
3840 | 3855 | | |
3841 | 3856 | | |
| |||
3845 | 3860 | | |
3846 | 3861 | | |
3847 | 3862 | | |
3848 | | - | |
| 3863 | + | |
3849 | 3864 | | |
3850 | 3865 | | |
3851 | 3866 | | |
| |||
0 commit comments