This is an archive of the discontinued LLVM Phabricator instance.

Use LLD for Android compiler-rt
ClosedPublic

Authored by oontvoo on Nov 3 2020, 2:43 PM.

Diff Detail

Event Timeline

oontvoo created this revision.Nov 3 2020, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2020, 2:43 PM
Herald added subscribers: Restricted Project, mgorny, dberris. · View Herald Transcript
oontvoo requested review of this revision.Nov 3 2020, 2:43 PM
vitalybuka added inline comments.Nov 3 2020, 3:48 PM
compiler-rt/lib/asan/tests/CMakeLists.txt
94 ↗(On Diff #302694)

why not COMPILER_RT_UNITTEST_LINK_FLAGS?

compiler-rt/test/lit.common.cfg.py
62–63

if (config.use_lld) ?

oontvoo updated this revision to Diff 302720.Nov 3 2020, 5:42 PM
oontvoo marked 2 inline comments as done.

updated diff

compiler-rt/test/lit.common.cfg.py
62–63

But there should not be a time where config.android and not config.use_lld
Added the error message.
(especially since we set use_lld=ANDROID_PYBOOL)

srhines added a subscriber: srhines.

Would it be better/easier if we just change the default in the Clang driver at this point to use LLD for Android triples? I believe Dan has patches for doing that which we hadn't submitted yet (because we only recently made it the NDK default).

vitalybuka accepted this revision.Nov 4 2020, 12:34 AM
This revision is now accepted and ready to land.Nov 4 2020, 12:34 AM
This revision was landed with ongoing or failed builds.Nov 4 2020, 12:51 AM
Closed by commit rG707d69ff3230: Use LLD for Android compiler-rt (authored by oontvoo, committed by vitalybuka). · Explain Why
This revision was automatically updated to reflect the committed changes.