[PATCH] D54214: [RISCV] Set triple based on -march flag
Simon Cook via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 04:00:01 PDT 2019
simoncook added a comment.
In D54214#1609967 <https://reviews.llvm.org/D54214#1609967>, @lenary wrote:
> What happens if I pass `clang -march=rv32i -target riscv64-unknown-elf`? Should we care about the ordering of `-march` vs `-target`?
Currently this patch makes the output be generated for rv32i. I think that `-march` should override `-target` since it is more fine grained, is used as the default way of controlling extensions, and may be less confusing than last XLEN wins.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits