This is an archive of the discontinued LLVM Phabricator instance.

[Zorg] Explicitly use `-stdlib=libstdc++` for Android.
ClosedPublic

Authored by danalbert on Oct 11 2018, 4:11 PM.

Details

Summary

This builder uses an old version of the NDK with a just-built version
of the Clang. This builder is making use of an NDK standalone
toolchain. For older NDKs, these toolchins have the C++ stdlib headers
and libraries installed to the GNU stdlib paths.

This causes an issue when I try to update the default -stdlib for
Android targets in Clang as this builder will begin looking in the
libc++ paths when it does not have an STL available at that path.

Explicitly use -stdlib=libstdc++ to keep the old tools working with
a new Clang until this builder is using an NDK new enough to not need
it (NDK r19).

Diff Detail

Repository
rL LLVM

Event Timeline

danalbert created this revision.Oct 11 2018, 4:11 PM
eugenis accepted this revision.Oct 12 2018, 9:13 AM

LGTM

This revision is now accepted and ready to land.Oct 12 2018, 9:13 AM
This revision was automatically updated to reflect the committed changes.