[PATCH] D106688: [AIX] Pass the -b option to linker on AIX

Zarko Todorovski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 28 12:50:10 PDT 2021


ZarkoCA added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:263
+      if (!T.isOSAIX()) {
+        TC.getDriver().Diag(diag::err_drv_unsupported_opt)
+            << A.getAsString(Args);
----------------
anjankgk wrote:
> ZarkoCA wrote:
> > nit, I prefer this error message but it's up to you. 
> I intentionally chose that error msg (without target mention) since that's the one the original option threw (existing '-b' option which was defined as unsupported for all the platforms).
I see, that makes sense.

But now with your patch this option is supported even if only for the AIX target. So we could make the case to use the suggested error message. That said, I am still fine with what you choose. 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106688/new/

https://reviews.llvm.org/D106688



More information about the cfe-commits mailing list