[FLANG] Fix MSVC + clang-cl build
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Wed, 30 Nov 2022 11:28:13 +0000 (16:28 +0500)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Wed, 30 Nov 2022 11:29:26 +0000 (16:29 +0500)
commitc687c2cce5198676b72734265780d8d898674e7a
treef2f85b64d319e6e5426a90a39d920322ff9983be
parente49a6c3d7f50c7e8426e9b5166e8567fced1aa57
[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 as it requires the uint128 division
builtin function __udivti3.

Reviewed By: DavidTruby

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