summaryrefslogtreecommitdiff
path: root/test/Driver/mingw.cpp
diff options
context:
space:
mode:
authorMartell Malone <martellmalone@gmail.com>2015-08-13 15:41:04 +0000
committerMartell Malone <martellmalone@gmail.com>2015-08-13 15:41:04 +0000
commit013510776b8e65f11b65c67d1b181652c0d9221b (patch)
tree4ef662812eec6480bf6d1798ea57a309815815ee /test/Driver/mingw.cpp
parent75109be3b9f589876baac5139f886bf468ca32f6 (diff)
downloadclang-013510776b8e65f11b65c67d1b181652c0d9221b.tar.gz
Driver: Fix include directories when not using libgcc under mingw
Summary: When we want to use mingw-w64 and clang with compiler-rt we should not need to have libgcc installed. This fixes finding includes when libgcc is not installed Reviewers: yaron.keren Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11808 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/mingw.cpp')
-rw-r--r--test/Driver/mingw.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/mingw.cpp b/test/Driver/mingw.cpp
index 5625c88b80..b638a64a64 100644
--- a/test/Driver/mingw.cpp
+++ b/test/Driver/mingw.cpp
@@ -1,3 +1,8 @@
+// RUN: %clang -target i686-windows-gnu -c -### --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s 2>&1 | FileCheck -check-prefix=CHECK_MINGW_CLANG_TREE %s
+// CHECK_MINGW_CLANG_TREE: "{{.*}}/Inputs/mingw_clang_tree/mingw32{{/|\\\\}}i686-w64-mingw32{{/|\\\\}}include"
+// CHECK_MINGW_CLANG_TREE: "{{.*}}/Inputs/mingw_clang_tree/mingw32{{/|\\\\}}include"
+
+
// RUN: %clang -target i686-pc-windows-gnu -stdlib=libstdc++ -c -### --sysroot=%S/Inputs/mingw_mingw_org_tree/mingw %s 2>&1 | FileCheck -check-prefix=CHECK_MINGW_ORG_TREE %s
// CHECK_MINGW_ORG_TREE: "{{.*}}/Inputs/mingw_mingw_org_tree/mingw{{/|\\\\}}lib{{/|\\\\}}gcc{{/|\\\\}}mingw32{{/|\\\\}}4.8.1{{/|\\\\}}include{{/|\\\\}}c++"
// CHECK_MINGW_ORG_TREE: "{{.*}}/Inputs/mingw_mingw_org_tree/mingw{{/|\\\\}}lib{{/|\\\\}}gcc{{/|\\\\}}mingw32{{/|\\\\}}4.8.1{{/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}mingw32"