Skip to content

Conversation

@dschaefer2
Copy link
Member

For Windows and Linux, SwiftPM generates modules for test discovery and the test entry point. When testing macro targets, we add the swift-syntax prebuilt Modules directory to the include path for the test target. We also need to do this for the generated modules.

As a side effect, this also adds all include directories to the include path for these generated modules to ensure they build for other use cases that may need this.

For Windows and Linux, SwiftPM generates modules for test
discovery and the test entry point. When testing macro targets,
we add the swift-syntax prebuilt Modules directory to the include
path for the test target. We also need to do this for the
generated modules.

As a side effect, this also adds all include directories to the
include path for these generated modules to ensure they build for
other use cases that may need this.
@dschaefer2
Copy link
Member Author

@swift-ci please test linux

@dschaefer2 dschaefer2 merged commit 95b91f3 into swiftlang:release/6.1 Apr 17, 2025
5 checks passed
@dschaefer2 dschaefer2 deleted the prebuilts-test-modules branch April 17, 2025 18:44
dschaefer2 added a commit to dschaefer2/swift-package-manager that referenced this pull request Apr 17, 2025
dschaefer2 added a commit that referenced this pull request Apr 23, 2025
…es (#8485) (#8526)

Cherry pick #8485 for 6.1.1. Fixes tests on Linux and Windows while
using prebuilts.
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