[llvm-branch-commits] [clang] [flang] [lld] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=flang-rt (PR #110217)
Michael Kruse via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 11 07:07:02 PST 2024
Meinersbur wrote:
> We should do `check_cxx_compiler_flag(-nostdlib++ FLANG_RT_HAS_NOSTDLIBPP)`, it's a lot more obvious when your program doesn't link than when a test fails (but the test is still good).
`-nostdlib++` has no influence on `libflang_rt.a` which is created by `ar`, not the linker. The unittests do require the C++ runtime library due to transitive dependency through GTest / LLVMSupport. The `flang(-new)` driver will never add lib(std)c++ linker flags, and test using the driver are in `flang/`.
https://github.com/llvm/llvm-project/pull/110217
More information about the llvm-branch-commits
mailing list