[clang] Add include path for cppwinrt on Windows SDK 10.0.17134+
authorKagami Sascha Rosylight <saschanaz@outlook.com>
Tue, 18 Jan 2022 08:13:42 +0000 (09:13 +0100)
committerHans Wennborg <hans@chromium.org>
Tue, 18 Jan 2022 08:14:23 +0000 (09:14 +0100)
commit9c195bae31c4eefc3e5360cefb4f601388a4f6d9
tree3ff5f71c0f8a8798ee39c674811b7445e1d06011
parent56a5d78893e62f348e329ea513f1fab28e869a10
[clang] Add include path for cppwinrt on Windows SDK 10.0.17134+

This fixes https://github.com/llvm/llvm-project/issues/53112 by adding
cppwinrt to the include path when the SDK version is higher than
10.0.17134.0.

Differential revision: https://reviews.llvm.org/D117407
clang/lib/Driver/ToolChains/MSVC.cpp
clang/test/Driver/cl-sysroot.cpp