Skip to content

Use an active compilation condition to build SourceKit-LSP without SwiftPM support #1970

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Feb 6, 2025

This is more explicit than using #if canImport(PackageModel).

…iftPM support

This is more explicit than using `#if canImport(PackageModel)`.
@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2025

@swift-ci Please test

.enableUpcomingFeature("InternalImportsByDefault"),
.enableUpcomingFeature("MemberImportVisibility"),
]
if noSwiftPMDependency {
Copy link
Contributor

Choose a reason for hiding this comment

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

I was going to ask where this was set, but we apparently had it already 😅. The double negative is a bit weird, but I suppose having SWIFTPM_DEPENDENCY would also be a bit weird, so maybe the double negative is the lesser of two evils.

@ahoppen ahoppen enabled auto-merge February 6, 2025 05:54
@ahoppen ahoppen merged commit 825c17e into swiftlang:main Feb 6, 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