FIXME: We should consider better isysroot scheme on Win32 hosts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130683
91177308-0d34-0410-b5e6-
96231b3b80d8
// Handle isysroot.
if ((Group == System || Group == CXXSystem) && !IgnoreSysRoot &&
+#if defined(_WIN32)
+ !MappedPathStr.empty() &&
+ llvm::sys::path::is_separator(MappedPathStr[0]) &&
+#else
llvm::sys::path::is_absolute(MappedPathStr) &&
+#endif
IsNotEmptyOrRoot) {
MappedPathStorage.clear();
MappedPathStr =
// RUN: %clang_cc1 -emit-pch -o %t -relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
// RUN: %clang_cc1 -include-pch %t -isysroot %S/libroot %s -verify
// RUN: not %clang_cc1 -include-pch %t %s
-// XFAIL: mingw,win32
+
#include <reloc.h>
int x = 2; // expected-error{{redefinition}}