[PATCH] D54378: Add Hurd triplet

Samuel Thibault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 10 18:34:43 PST 2018


sthibaul added a comment.

> `i386-pc-hurd-gnu` is fine as is, however, it seems that you want to be able to use `i386-pc-gnu` from Clang, if I understand correctly.

Aah, ok, so llvm itself would use the cmake-provided target i386-unknown-gnu0.9 which makes it only behave GNU-ish, but the driver part of clang can provide an explicit target to llvm, *before* `getOSTypeName` gets called. That's what I wasn't understanding, I thought the clang Driver things were after llvm processing.

> Take a look at: https://github.com/llvm-project/llvm-project-20170507/blob/master/clang/lib/Driver/

Well, it's 13875 lines of code... Considering that you mentioned Darwin, do you mean tinkering with `Driver.cpp`'s `computeTargetTriple`?

> check Argv0 and have clang-hurd or something along the lines

Err, we do not want a special clang invocation program, we just want usual clang calls running on Hurd to use the `i386-pc-hurd-gnu` target by default, I guess that's what computeTargetTriple would allow to achieve?


Repository:
  rL LLVM

https://reviews.llvm.org/D54378





More information about the llvm-commits mailing list