================ @@ -258,6 +259,13 @@ static void getARMMultilibFlags(const Driver &D, } } +static void getRISCVMultilibFlags(const Driver &D, const llvm::Triple &Triple, + const llvm::opt::ArgList &Args, + Multilib::flags_list &Result) { + Result.push_back("-march=" + riscv::getRISCVArch(Args, Triple)); ---------------- lenary wrote:
the discourse thread also contains suggestions about splitting up each extension into a different flag - I'm not opposed to an approach like that either, and it might make creating a multilib config which matches the existing behaviour a lot easier. https://github.com/llvm/llvm-project/pull/98856 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits