Skip to content

Revert "Revert "[cxx-interop][SwiftCompilerSources] Use C++ enums directly from Swift"" #61618

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
Oct 20, 2022

Conversation

egorzhdan
Copy link
Contributor

The hosttools build issue is fixed in a recent trunk toolchain: swift-DEVELOPMENT-SNAPSHOT-2022-10-16-a.
The compiler bug that was causing it was fixed in #61540.

This reverts commit 69431f0

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Oct 18, 2022
@egorzhdan egorzhdan requested a review from eeckstein October 18, 2022 18:03
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

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, thanks!

@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test macOS

2 similar comments
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test macOS

@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test macOS

@egorzhdan egorzhdan merged commit a6372e9 into main Oct 20, 2022
@egorzhdan egorzhdan deleted the egorzhdan/scs-reapply-enums branch October 20, 2022 14:46
ahoppen added a commit to ahoppen/swift that referenced this pull request Oct 22, 2022
There were three different issues going on here, all of these were triggered by swiftlang#61618 which stared including `AST/AnyFunctionRef.h` from the ASTBridging modulemap

- We did not find the clang include dirs because the unified build that build-tooling-libs is using does not import ClangConfig, setting `CLANG_INCLUDE_DIRS` in `swift_common_unified_build_config` fixed this problem.
- Some of the headers in `swift-ast-generated-headers` import generated headers from clang that might not have been created yet. Making `swift-ast-generated-headers` depend on the clang generated headers fixes this problem. This just lowers the dependency because `swiftAST` depends on `swift-ast-generated-headers`
- If a Swift compiler from Xcode is used, the SwiftShims don’t live next to the compiler but in the SDK. Adding the SDKs lib to the include paths fixes this problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants