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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to