[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 09:03:17 PST 2020


hvdijk added a comment.

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

> Maybe `sys::getDefaultTargetTriple()` needs to be adjusted. I'll have a look.

`sys::getDefaultTargetTriple()` defaults to `LLVM_DEFAULT_TARGET_TRIPLE`, which in turn defaults to `LLVM_HOST_TRIPLE`, which in turn defaults to `LLVM_INFERRED_HOST_TRIPLE`, which calls `config.guess` which never automatically detects X32. Sorry, forgot to mention that on my system, I also make sure to explicitly specify `LLVM_HOST_TRIPLE` to an X32 triple when building LLVM.


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