We were using static library trycompile in compiler-rt, eg:
compiler-rt/lib/builtins/CMakeLists.txt:
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
compiler-rt/cmake/Modules/AddCompilerRT.cmake:
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
We should also use it in runtime build.
Or else CMake may not be able to detect ABI and others correctly when
configuring compiler-rt.
eg: On AIX, we can't build compiler-rt without this fix in runtime build,
linking CMakeCCompilerABI.c will fail hence failing to detect ABI.