This is an archive of the discontinued LLVM Phabricator instance.

mips: fix search path for multilib o32
ClosedPublic

Authored by wzssyqa on Oct 20 2021, 10:07 AM.

Details

Summary

In the situation of multilib, the gcc objects are in a /32 directory.
On Debian, the libraries is under /libo32 to avoid confliction.

This patch enables clang find gcc in /32, and C lib in /libo32.

Diff Detail

Event Timeline

wzssyqa created this revision.Oct 20 2021, 10:07 AM
wzssyqa requested review of this revision.Oct 20 2021, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2021, 10:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
  • Does this problem exist on all versions of Debian or starting from specific version only?
  • This fix needs test cases. Take a look at "Check linker invocation on Debian 6 MIPS 32/64-bit" in the clang/test/Driver/linux-ld.c for example.
  • Does this problem exist on all versions of Debian or starting from specific version only?

This feature starts from llvm-8. And this problem is since then.

  • This fix needs test cases. Take a look at "Check linker invocation on Debian 6 MIPS 32/64-bit" in the clang/test/Driver/linux-ld.c for example.

I will do so.

wzssyqa updated this revision to Diff 381826.Oct 24 2021, 8:21 PM
This revision is now accepted and ready to land.Oct 28 2021, 12:17 AM
This revision was automatically updated to reflect the committed changes.