[PATCH] D144853: [Clang][RISCV] Add CMake options to configure default CPU

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 28 00:01:35 PST 2023


MaskRay added a comment.

I object to this change which further complicates the build system and makes the difference difficult to observe by users.
If your `clang` executable is at `bin/clang`, just create `bin/riscv64-unknown-linux-gnu.cfg` with `-mcpu=xxx`.
You may configure `LLVM_DEFAULT_TARGET_TRIPLE=riscv64-unknown-linux-gnu` so that the driver doesn't need extra `--target=`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144853/new/

https://reviews.llvm.org/D144853



More information about the cfe-commits mailing list