Skip to content

[SR-12664] [C++] Verify that appropriate C++ standard library is chosen by default on Android #55108

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-12664
Radar None
Original Reporter martinboehme (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CxxInterop
Assignee None
Priority Medium

md5: 0d57f11207e39ff3564ecc0c357dd7a0

Issue Description:

See the discussion here:

#30914 (comment)

From the comment referenced there, it appears that:

  • When using Swift to cross-compile for Android on Linux, it links to libstdc++ by default.
  • However, Android doesn't support libstdc+, and executables compiled for it should use libc+ instead.

We should find out whether this is a problem in Clang or with Swift's use of Clang and change the default if possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidPlatform: AndroidbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++compilerThe Swift compiler itselfplatform support

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions