[clang] [RISCV] Allow YAML file to control multilib selection (PR #98856)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 08:38:24 PDT 2024


================
@@ -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));
----------------
ArcaneNibble wrote:

I've made it so that `-march` is now canonicalized. Interestingly, it's already possible to split each extension into its own flag, which I will imminently describe in the discourse thread.

https://github.com/llvm/llvm-project/pull/98856


More information about the cfe-commits mailing list