[compiler-rt] Reapply [compiler-rt] Check for and use -lunwind when linking with -nodefaultlibs (PR #66584)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 00:38:59 PDT 2023


petrhosek wrote:

I'm surprised that CMake is trying to use targets defined in the same build in `try_compile`. What would happen if this a `LIBRARY` target like `unwind_shared` or `unwind_static`? That target hasn't been built yet (it's built by the build we're configuring). Is this a CMake issue or is there a well defined behavior for this case?

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


More information about the llvm-commits mailing list