[clang] [LoongArch] Add FreeBSD targets (PR #119191)

WÁNG Xuěruì via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 11 01:30:00 PST 2024


================
@@ -223,6 +231,12 @@ void freebsd::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");
----------------
xen0n wrote:

Ah I missed the `hasArg` part. I have no problem with it then...

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


More information about the cfe-commits mailing list