This is an archive of the discontinued LLVM Phabricator instance.

[clang][Driver] Search lib32 on Linux/sparc64 with -m32
AbandonedPublic

Authored by ro on Aug 8 2020, 12:55 AM.

Details

Summary

When building current master on sparc64-unknown-linux-gnu (Debian 5.7.10), all 32-bit tests failed to link because the matching startup files and libraries weren't found. As on Linux/x86_64 they live in lib32 subdirectories.

This patch searches those directories as on x86 and ppc, allowing 32-bit links to succeed.

Diff Detail

Event Timeline

ro created this revision.Aug 8 2020, 12:55 AM
ro requested review of this revision.Aug 8 2020, 12:55 AM
phosek added a comment.Aug 8 2020, 1:12 AM

Would it be possible to add a test case in clang/test/Driver/linux-ld.c?

ro abandoned this revision.Nov 13 2020, 4:37 AM

Superceded by D90524.