[Flang] remove whole-archive option for AIX linker (#76039)
commit6b505406a3403a9ab6c733ccf1fbcc52d9ca0601
authormadanial0 <118996571+madanial0@users.noreply.github.com>
Thu, 21 Dec 2023 15:22:30 +0000 (21 10:22 -0500)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 15:22:30 +0000 (21 10:22 -0500)
tree9a25f53643effd0f5346d49308fb194c8d9a0395
parent8eccf2b872cc1a88a1e5d4e5af0bfdabfb66c7bb
[Flang] remove whole-archive option for AIX linker (#76039)

The AIX linker does not support the `--whole-archive` option, removing
the option if the OS is AIX.

---------

Co-authored-by: Mark Danial <mark.danial@ibm.com>
clang/lib/Driver/ToolChains/CommonArgs.cpp
flang/test/Driver/no-duplicate-main.f90