================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to