[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 20 16:16:34 PDT 2025


================
@@ -167,6 +167,12 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
       CmdArgs.push_back("--no-relax");
   }
 
+  if (Triple.isLoongArch64()) {
+    CmdArgs.push_back("-X");
+    if (Args.hasArg(options::OPT_mno_relax))
+      CmdArgs.push_back("--no-relax");
+  }
+  
----------------
brad0 wrote:

You can merge this check with the RISC-V check above this.

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


More information about the cfe-commits mailing list