Skip to content

SwiftCompilerSources: update Package.swift #67810

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 5 commits into from
Aug 9, 2023

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Aug 8, 2023

Update the package manager manifest to properly enable C++ interoperability. This allows us to start trying to build SwiftCompilerSources with SPM again.

@compnerd compnerd requested a review from eeckstein as a code owner August 8, 2023 21:46
Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

lgtm

@compnerd
Copy link
Member Author

compnerd commented Aug 9, 2023

@swift-ci please test

LLVM, clang, and Swift use C++17.  Explicitly specify the C++ language
standard to use.
Mark the Swift flags for interoperability mode rather than using the old
spelling for enabling C++ interoperability.  This is important as it
allows the `cxxLanguageStandard` to flow through to the clang importer
which is required to enable the use of the C++ headers.
Remove the flags that are now implicitly setup by SPM.  Addresses
feedback from @hyp.
Use the `cxxSettings` to pass along header search paths.  With those
removed, we are simply adding the interoperability mode and unsafe
flags, which we can inline.  This simplifies the package definition a
bit.
@compnerd
Copy link
Member Author

compnerd commented Aug 9, 2023

@swift-ci please smoke test

@compnerd
Copy link
Member Author

compnerd commented Aug 9, 2023

@swift-ci please smoke test

@compnerd
Copy link
Member Author

compnerd commented Aug 9, 2023

@swift-ci please smoke test macOS platform

@compnerd compnerd merged commit e4310d7 into swiftlang:main Aug 9, 2023
@compnerd compnerd deleted the interoperation branch August 9, 2023 23:32
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