Skip to content

experimental-build-server should provide compiler arguments for header files#9903

Merged
owenv merged 1 commit intoswiftlang:mainfrom
owenv:owenv/substitute
Apr 9, 2026
Merged

experimental-build-server should provide compiler arguments for header files#9903
owenv merged 1 commit intoswiftlang:mainfrom
owenv:owenv/substitute

Conversation

@owenv
Copy link
Copy Markdown
Contributor

@owenv owenv commented Apr 8, 2026

This implementation is equivalent to the one in SourceKit-LSP for the native build system - It attempts to find a C-family source file in the same target as the header and modify its args to compile the header directly. This lives in SwiftPM instead of Swift Build because package headers aren't currently represented in the PIF, so we need to add them at this level instead.

@owenv
Copy link
Copy Markdown
Contributor Author

owenv commented Apr 8, 2026

@swift-ci test

@owenv owenv merged commit 122c50e into swiftlang:main Apr 9, 2026
60 of 61 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