[PATCH] D11808: Driver: Fix include and lib dirs when not using gcc under mingw
Martell Malone via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 6 11:07:48 PDT 2015
martell created this revision.
martell added a reviewer: yaron.keren.
martell added a subscriber: cfe-commits.
When gcc is not installed we fail to set the correct include and lib directory.
In some cases base is set and we might want to use clang without gcc being installed
http://reviews.llvm.org/D11808
Files:
lib/Driver/MinGWToolChain.cpp
Index: lib/Driver/MinGWToolChain.cpp
===================================================================
--- lib/Driver/MinGWToolChain.cpp
+++ lib/Driver/MinGWToolChain.cpp
@@ -47,7 +47,7 @@
Archs.emplace_back(getTriple().getArchName());
Archs[0] += "-w64-mingw32";
Archs.emplace_back("mingw32");
- Arch = "unknown";
+ Arch = Archs[0].str();
// lib: Arch Linux, Ubuntu, Windows
// lib64: openSUSE Linux
for (StringRef CandidateLib : {"lib", "lib64"}) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11808.31458.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150806/94e84a9e/attachment.bin>
More information about the cfe-commits
mailing list