[clang] [flang][driver] Don't use -whole-archive on Darwin (PR #75393)

Leandro Lupori via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 14 09:25:30 PST 2023


luporl wrote:

> I build and `check-flang` on `arm64-apple-darwin22.6.0`. `Driver/no-duplicate-main.f90` fails in the 3rd RUN. The test passes with HEAD.
> 
> ```
> kelvin at neutrino2 build % /Users/kelvin/wrk/llvm/tmp/build/bin/flang-new -o /Users/kelvin/wrk/llvm/tmp/build/tools/flang/test/Driver/Output/no-duplicate-main.f90.tmp.exe /Users/kelvin/wrk/llvm/tmp/build/tools/flang/test/Driver/Output/no-duplicate-main.f90.tmp /Users/kelvin/wrk/llvm/tmp/build/tools/flang/test/Driver/Output/no-duplicate-main.f90.tmp.c-object
> 
> kelvin at neutrino2 build % echo $?
> 0
> ```

Unrelated to this PR, but may I ask how do you configure flang, to make it link without errors and without extra flags?
I need to add `-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib`.

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


More information about the cfe-commits mailing list