[PATCH] D98894: [runtime][CMake] use static_library try compile

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 18 14:31:11 PDT 2021


phosek added a comment.

See this thread https://groups.google.com/g/llvm-dev/c/KWy1-Dw_9Rk, as I mentioned there I don't think we can set `CMAKE_TRY_COMPILE_TARGET_TYPE` unconditionally to `STATIC_LIBRARY` because doing so is going to disable some checks which may cause issues for some targets.

You should be able to bypass the failing ABI detection by setting `CMAKE_{C,CXX,ASM}_COMPILER_WORKS` to `ON`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98894/new/

https://reviews.llvm.org/D98894



More information about the llvm-commits mailing list