This is an archive of the discontinued LLVM Phabricator instance.

Apply the same fallbacks as runtimes search for stdlib search
AbandonedPublic

Authored by glandium on Mar 22 2023, 3:10 PM.

Details

Reviewers
thakis
Summary

When building clang with e.g. LLVM_ENABLE_RUNTIMES=libcxx;libunwind,
those runtimes end up in the stdlib search directory, and when
LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is set, that ends up in a
target-specific subdirectory. The stdlib search does handle the
situation, but when the target in question is Android, the same issues
as those that required fallbacks for runtimes search apply.

Traditionally, those libraries are shipped as part of the Android NDK,
but when one builds their own clang for Android, they may want to use
the runtimes from the same version rather than the ones from the NDK.

Diff Detail

Event Timeline

glandium created this revision.Mar 22 2023, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2023, 3:10 PM
glandium requested review of this revision.Mar 22 2023, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2023, 3:10 PM
srhines added a subscriber: kongyi.Mar 22 2023, 3:17 PM
srhines added a subscriber: srhines.

Is it possible to test this?

Is it possible to test this?

I don't know how.