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

Harald van Dijk via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 08:01:02 PST 2020


hvdijk added a comment.

In D52050#2428560 <https://reviews.llvm.org/D52050#2428560>, @glaubitz wrote:

> Any idea how it could make clang default to `-mx32` if this condition is met: `getToolChain().getTriple().getEnvironment() == llvm::Triple::GNUX32`?

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`.


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