================ @@ -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:
I think that the arch string used here should be normalised using RISCVISAInfo - so that matching is much easier. I think this might throw up some issues when clang changes the version of an extension it implements, but likely you have to check your library build/configuration when that happens anyway, i think. 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