Skip to content

[ClangImporter] Look for platform modulemaps in the resource dir first #76036

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

Closed
wants to merge 1 commit into from

Conversation

egorzhdan
Copy link
Contributor

This applies #74814 for all targets except Android.

This fixes a common source of build failures on Linux, where shim functions from CxxStdlibShim would not be found by the hosttools Swift compiler when building the CxxStdlib overlay.

This change is keeping Android intact to keep the existing Android SDK working.

This applies #74814 for all targets except Android.

This fixes a common source of build failures on Linux, where shim functions from CxxStdlibShim would not be found by the hosttools Swift compiler when building the CxxStdlib overlay.

This change is keeping Android intact to keep the existing Android SDK working.
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Aug 22, 2024
@egorzhdan egorzhdan requested a review from compnerd August 22, 2024 14:16
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

return result;
// FIXME: This is a workaround to keep the Android SDK build working.
// See https://github.com/swiftlang/swift/pull/74814.
if (triple.isAndroid()) {
Copy link
Member

Choose a reason for hiding this comment

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

Put this Android block inside a #if defined(_WIN32) || defined(_WIN64), as only The Browser Company's upcoming Android SDK that is only used on Windows and uses a new experimental SDK layout fails with this pull.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if that's the best approach, I'm curious what @compnerd @hyp think is the best solution here.

@egorzhdan egorzhdan closed this Aug 27, 2024
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