Skip to content

Unblock new dependency of XCTest on Swift Testing for Windows - #2760

Merged
hamishknight merged 1 commit into
swiftlang:mainfrom
jerryjrchen:push-lnppnknksnkl
Sep 9, 2026
Merged

hamishknight merged 1 commit into
swiftlang:mainfrom
jerryjrchen:push-lnppnknksnkl

Conversation

@jerryjrchen

Copy link
Copy Markdown
Contributor

Update compiler args for a test to include the Testing module alongside the XCTest module.

XCTest requires a Swift Testing dependency when built in the toolchain: swiftlang/swift-corelibs-xctest#549

On Windows, the test "IndexedSingleSwiftFileTestProject" manually constructs the compilation flags in a way that previously only included the XCTest module, causing a test failure in the PR that adds the Swift Testing dependency.

Update compiler args for a test to include the Testing module alongside
the XCTest module.

XCTest requires a Swift Testing dependency when built in the toolchain:
swiftlang/swift-corelibs-xctest#549

On Windows, the test "IndexedSingleSwiftFileTestProject" manually
constructs the compilation flags in a way that previously only included
the XCTest module, causing a test failure in the PR that adds the Swift
Testing dependency.
@jerryjrchen

Copy link
Copy Markdown
Contributor Author

With my toolchain build I can confirm this does fix the build issue that's blocking the corelibs XCTest PR.

@jerryjrchen

Copy link
Copy Markdown
Contributor Author

@swift-ci Please test

@jerryjrchen
jerryjrchen marked this pull request as ready for review September 8, 2026 23:39

@ahoppen ahoppen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good with me, thanks.

@hamishknight
hamishknight merged commit a058928 into swiftlang:main Sep 9, 2026
3 checks passed
@jerryjrchen
jerryjrchen deleted the push-lnppnknksnkl branch September 9, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants