Skip to content

Check that swift-frontend supports ipi clang module before transferri…#2155

Merged
sepy97 merged 1 commit into
swiftlang:mainfrom
sepy97:ipi-frontend-verify
Jul 9, 2026
Merged

Check that swift-frontend supports ipi clang module before transferri…#2155
sepy97 merged 1 commit into
swiftlang:mainfrom
sepy97:ipi-frontend-verify

Conversation

@sepy97

@sepy97 sepy97 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

…ng the flag to the frontend.

This way no "unknown argument" error would occur if swift-frontend does not support clang ipi modules

rdar://181745695

@sepy97

sepy97 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change LGTM. Comment in test.

// Single flag is forwarded.
do {
var driver = try TestDriver(args: ["swiftc", "-ipi-clang-module", "Foo", "foo.swift"])
guard driver.isFrontendArgSupported(.ipiClangModule) else { return }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is preferred to use test trait requireFrontendArgSupport than return in the middle of the tests.

…ng the flag to the frontend.

This way no "unknown argument" error would occur if swift-frontend
does not support clang ipi modules

rdar://181745695
@sepy97 sepy97 force-pushed the ipi-frontend-verify branch from 347fb37 to 0215a47 Compare July 8, 2026 22:11
@sepy97

sepy97 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@sepy97 sepy97 enabled auto-merge July 8, 2026 22:12
@sepy97

sepy97 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows

@sepy97 sepy97 merged commit b54e2bb into swiftlang:main Jul 9, 2026
27 checks passed
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