Skip to content

Conversation

@hnrklssn
Copy link
Member

This helper utility takes a module interface as input, and emits a Swift
file importing the module and calling every function in the module. It's
intended for testing of safe interop wrappers to make sure they go
through the entire pipeline of the compiler instead of succumbing to
laziness.

Extracted from #84385

@hnrklssn
Copy link
Member Author

@swift-ci please smoke test

@hnrklssn hnrklssn force-pushed the swift-function-caller-generator branch from b2179c9 to 9e620af Compare October 16, 2025 00:38
@hnrklssn
Copy link
Member Author

@swift-ci please smoke test

Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

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

Could this PR add a single use that shows what the generated calls look like?

@hnrklssn hnrklssn requested a review from Xazax-hun October 17, 2025 00:27
@hnrklssn
Copy link
Member Author

@swift-ci please smoke test

@hnrklssn
Copy link
Member Author

Could this PR add a single use that shows what the generated calls look like?

Done! Added one checking that the output compiles without warnings as well.

@hnrklssn
Copy link
Member Author

@swift-ci please smoke test

@hnrklssn
Copy link
Member Author

@swift-ci please test macos platform

This helper utility takes a module interface as input, and emits a Swift
file importing the module and calling every function in the module. It's
intended for testing of safe interop wrappers to make sure they go
through the entire pipeline of the compiler instead of succumbing to
laziness.
Building Foundation seems to be optional in the Linux build script,
which makes it tricky to link against outside of Darwin platforms. This
removes the dependency on Foundation and calls libc for I/O instead.
@hnrklssn hnrklssn force-pushed the swift-function-caller-generator branch from dc68697 to 328e07a Compare October 17, 2025 22:15
@hnrklssn
Copy link
Member Author

@swift-ci please smoke test

@hnrklssn hnrklssn enabled auto-merge October 17, 2025 22:16
@hnrklssn hnrklssn merged commit a522c5c into swiftlang:main Oct 18, 2025
3 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.

2 participants