[PATCH] D52050: [Driver] Fix architecture triplets and search paths for Linux x32

John Paul Adrian Glaubitz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 08:53:08 PST 2020


glaubitz added a comment.

In D52050#2428590 <https://reviews.llvm.org/D52050#2428590>, @hvdijk wrote:

> That sounds like it's one thing in https://lists.llvm.org/pipermail/llvm-dev/2020-October/146049.html I haven't extracted into a separate patch for submission yet: LLVM does not call `Triple::normalize` everywhere it should, and misinterprets x86_64-linux-gnux32 as x86_64-somethingelse when it's set as the default target because of it. For testing this change, it may be easiest to just explicitly specify the triple or `-mx32`.

That doesn't help, unfortunately

The problem is that invoking `clang` on a Debian x32 defaults to `-m64` while it should default to `-mx32`. See my test run above.

I have not found the place yet in clang where to adjust that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D52050/new/

https://reviews.llvm.org/D52050



More information about the cfe-commits mailing list