[flang-commits] [clang] [flang] [flang][AIX] Enable -b flag (PR #235101)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Sun Oct 25 11:53:09 PDT 2026


================
@@ -1353,6 +1353,14 @@ void Flang::ConstructJob(Compilation &C, const JobAction &JA,
     }
   }
 
+  // Reject AIX-specific link option on other targets.
+  if (!Triple.isOSAIX()) {
+    for (const Arg *A : Args.filtered(options::OPT_b)) {
----------------
tarunprabhu wrote:

This looks like it will issue an error for each instance of `-b`. Would it be ok to use `hasArg` here and issue the error just once?

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


More information about the flang-commits mailing list