[FLANG] Fix MSVC + clang-cl build
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Mon, 31 Oct 2022 20:53:16 +0000 (00:53 +0400)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Wed, 2 Nov 2022 08:32:21 +0000 (12:32 +0400)
commit870fbf8e300f3012470593ac087219a04d52857f
tree7c4dd84e41e24695afb36c0662064ee6af32c687
parentc49db597a131576160ab8d1e19575853afbc7077
[FLANG] Fix MSVC + clang-cl build

Flang build on windows with MSVC environment and clang-cl compiler
requires clang_rt.builtin.${target} library. This patch allows us to
locate and include this link library. This is mostly needed for flang
runtime and associated unittests. Clang implicitly uses this library
while calling lld-link via clang driver however a standalone call to
lld-link doesnt link against clang_rt library on its own.

Differential Revision: https://reviews.llvm.org/D137112
flang/CMakeLists.txt