[PATCH] D100054: Handle flags such as -m32 when computing the triple prefix for programs
Alexander Richardson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 7 14:38:56 PDT 2021
arichardson planned changes to this revision.
arichardson added a comment.
In D100054#2675152 <https://reviews.llvm.org/D100054#2675152>, @joerg wrote:
> This sounds wrong. If you are using 'x86_64-freebsd' as triple and -m32, it should still call 'x86_64-freebsd-ld', but it is the responsibility of the driver to ensure that also the right set of linker flags are passed as well. Compare `netbsd::Linker::ConstructJob` for one way to handle this.
Good point. The real problem was that clang was passing the 64-bit asan runtime library to the linker, not so much that it tried to invoke the x86_64-prefixed linker. I'll see if I can limit this to the library paths.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100054/new/
https://reviews.llvm.org/D100054
More information about the cfe-commits
mailing list