Skip to content

[Prepare] Don't skip non-exportable-decls when enable-testing #7675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

dschaefer2
Copy link
Member

When enable-testing is turned on, the test modules need access to the non exportable decls. Make sure we aren't skipping them in this case.

When enable-testing is turned on the test modules need access
to the non exportable decls. Make sure both the flags are not
on at the same time when preparing for index.
@dschaefer2
Copy link
Member Author

@swift-ci please test

@dschaefer2
Copy link
Member Author

dschaefer2 commented Jun 18, 2024

rdar://129380615

@MaxDesiatov MaxDesiatov added bug build system Changes to interactions with build systems labels Jun 18, 2024
@dschaefer2
Copy link
Member Author

@swift-ci please test windows

@dschaefer2 dschaefer2 merged commit 363fadf into swiftlang:main Jun 19, 2024
5 checks passed
@dschaefer2 dschaefer2 deleted the prepare-enable-testing branch June 19, 2024 03:24
dschaefer2 added a commit to dschaefer2/swift-package-manager that referenced this pull request Jun 19, 2024
ahoppen pushed a commit that referenced this pull request Jun 27, 2024
) (#7686)

Explanation: @testable doesn't work if you skip non-exportable-decls.
Make sure we don't turn on that flag if the target is enable-testing.
Scope: Prepare for indexing only
Risk: isolated to prepare for indexing with is behind an experimental
flag
Original PR: #7675
Testing: Unit-Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build system Changes to interactions with build systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants