Open ArielHeleneto opened 4 months ago
@llvm/issue-subscribers-clang-driver
Author: Ariel Xiong (ArielHeleneto)
@llvm/issue-subscribers-backend-risc-v
Author: Ariel Xiong (ArielHeleneto)
cc @topperc @wangpc-pp
I may misunderstand your question, but I think we do support -march=rv64gc
. The code you are pointing to are logics that we will set a default march based on some information if you don't specify -march
option.
I may misunderstand your question, but I think we do support
-march=rv64gc
. The code you are pointing to are logics that we will set a default march based on some information if you don't specify-march
option.
-march=rv64gc for building LLVM like with-arch
You want a CMake option, for example, "-DDEFAULT_RISCV_MARCH=rv64gc", and clang will use this march if we don't specify -march
option? If so, I would suggest you to use configuration files (https://clang.llvm.org/docs/UsersManual.html#configuration-files).
Add an option for choosing arch instead of only auto-detect in https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Arch/RISCV.cpp#L335
Add a feather like gcc.