Skip to content

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.

3 participants