This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Fix the sanitizer build on Android
ClosedPublic

Authored by phosek on Jul 28 2017, 4:41 PM.

Details

Summary

Android uses libgcc name even for shared library unlike other platforms
which use libgcc_s. Furthemore, Android libstdc++ has a dependency on
libdl. These need to be handled while performing CMake checks.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Jul 28 2017, 4:41 PM
eugenis added inline comments.Jul 28 2017, 4:55 PM
CMakeLists.txt
283 ↗(On Diff #108742)

The code is looking for gcc_s on android. Is that right? Should the condition be inverted?

phosek updated this revision to Diff 109013.Jul 31 2017, 3:09 PM
phosek marked an inline comment as done.
eugenis accepted this revision.Jul 31 2017, 3:14 PM

LGTM

This revision is now accepted and ready to land.Jul 31 2017, 3:14 PM
This revision was automatically updated to reflect the committed changes.