[PATCH] D98894: [runtime][CMake] use static_library try compile
Jinsong Ji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 19 07:12:03 PDT 2021
jsji added a comment.
In D98894#2635838 <https://reviews.llvm.org/D98894#2635838>, @phosek wrote:
> 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`.
Thanks for the info. I will do some more experiments then.
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