[PATCH] D100054: Handle flags such as -m32 when computing the prefix for programs/runtime libs
Alexander Richardson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 8 04:43:55 PDT 2021
arichardson updated this revision to Diff 336059.
arichardson added a comment.
Add the raw triple prefix for programs (but prefer the adjusted triple) and always use the adjusted triple for libraries.
Should hopefully address the feedback from @joerg.
Also improve tests to check that we don't insert additional empty/"-unknown" triple components.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100054/new/
https://reviews.llvm.org/D100054
Files:
clang/include/clang/Driver/Driver.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/RISCVToolchain.cpp
clang/test/Driver/Inputs/basic_freebsd64_tree/usr/bin/i386-unknown-freebsd12.2-ld
clang/test/Driver/Inputs/basic_freebsd64_tree/usr/bin/x86_64-freebsd12.2-ld
clang/test/Driver/Inputs/basic_freebsd64_tree/usr/bin/x86_64-unknown-freebsd12.2-ld
clang/test/Driver/freebsd-m32.c
clang/test/Driver/linux-per-target-runtime-dir.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100054.336059.patch
Type: text/x-patch
Size: 18163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210408/51cbcb3c/attachment-0001.bin>
More information about the cfe-commits
mailing list