Adjust msvc_stdlib_force_include.hpp to handle clang++

Summary: This patch adjusts the newly added `msvc_stdlib_force_include.hpp` so that it also works when used with `clang++`.

Reviewers: STL_MSFT

Reviewed By: STL_MSFT

Differential Revision: https://reviews.llvm.org/D28917

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@292539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2017-01-19 23:48:05 +00:00
parent 56257d4918
commit e70e03c7f6
3 changed files with 84 additions and 84 deletions

View File

@@ -468,10 +468,9 @@ class Configuration(object):
self.cxx.compile_flags += [
'-include', os.path.join(support_path, 'nasty_macros.hpp')]
if self.cxx_stdlib_under_test == 'msvc':
# FIXME: Uncomment this once STL commits the support header.
# self.cxx.compile_flags += [
# '-include', os.path.join(support_path,
# 'msvc_stdlib_force_include.h')]
self.cxx.compile_flags += [
'-include', os.path.join(support_path,
'msvc_stdlib_force_include.hpp')]
pass
if self.is_windows and self.debug_build and \
self.cxx_stdlib_under_test != 'msvc':