weimingz added a comment. Not sure if it is the portable way to do. I see cmake/base-config-ix.cmake has `set(CMAKE_STATIC_LIBRARY_SUFFIX_C ".lib")`, but I can't find where the variable is used and not sure if we can use it in test/CMakefile. https://reviews.llvm.org/D31742