Driver: correct typo
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Nov 2014 17:59:00 +0000 (17:59 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Nov 2014 17:59:00 +0000 (17:59 +0000)
Fix a typo in the search path identified by Justin Bogner.

llvm-svn: 222371

clang/lib/Driver/CrossWindowsToolChain.cpp
clang/test/Driver/windows-cross.c

index c9e4fa7..03fe41b 100644 (file)
@@ -81,7 +81,7 @@ AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs,
     break;
 
   case ToolChain::CST_Libstdcxx:
-    addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/incldue/c++");
+    addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/c++");
     addSystemInclude(DriverArgs, CC1Args,
                      SysRoot + "/usr/include/c++/" + Triple.str());
     addSystemInclude(DriverArgs, CC1Args,
index 1d1e47b..c8dbfdb 100644 (file)
@@ -33,3 +33,8 @@
 
 // CHECK-STANDALONE: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-shared" "-Bdynamic" "--enable-auto-image-base" "--entry" "_DllMainCRTStartup" "--allow-multiple-definition" "-o" "shared.dll" "--out-implib" "shared.lib" "{{.*}}.o"
 
+// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %/Inputs/Windows/ARM/8.1/usr/bin -shared -o shared.dll -x c++ %s 2>&1 \
+// RUN:    | FileCheck %s --check-prefix CHECK-LIBSTDCXX
+
+// CHECK-LIBSTDCXX:  "-internal-isystem" "{{.*}}/usr/include/c++" "-internal-isystem" "{{.*}}/usr/include/c++/armv7--windows-itanium" "-internal-isystem" "{{.*}}/usr/include/c++/backwards"
+