[Driver] Support libc++ in MSVC
authorPetr Hosek <phosek@google.com>
Thu, 18 Aug 2022 03:33:34 +0000 (03:33 +0000)
committerPetr Hosek <phosek@google.com>
Thu, 18 Aug 2022 04:04:40 +0000 (04:04 +0000)
commita4230319f7af786f4d947f39a870f339b32a6fe7
tree99adc0ad47b5538dadeca5d3468605a834240ea9
parente33599371eb1ab1b782735f39b3f27c19d88da41
[Driver] Support libc++ in MSVC

This implements support for using libc++ headers in MSVC toolchain.
We only support libc++ headers that are part of the toolchain, and
not headers installed elsewhere on the system.

Differential Revision: https://reviews.llvm.org/D101479
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/MSVC.cpp
clang/test/Driver/Inputs/msvc_libcxx_tree/usr/bin/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/msvc_libcxx_tree/usr/include/c++/v1/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/msvc_libcxx_tree/usr/include/x86_64-pc-windows-msvc/c++/v1/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/msvc_libcxx_tree/usr/lib/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/msvc_libcxx_tree/usr/lib/x86_64-pc-windows-msvc/.keep [new file with mode: 0644]
clang/test/Driver/msvc-libcxx.cpp [new file with mode: 0644]