summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/MSVC.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-04-18 13:27:31 +0000
committerMartin Storsjo <martin@martin.st>2019-04-18 13:27:31 +0000
commit4cfc8d6afc827f6e1e6cf9bad9829e3dfcb71aa9 (patch)
tree8ee428f4b30b2834989b7afbe0b2ab8694989166 /clang/lib/Driver/ToolChains/MSVC.cpp
parent0b826f193f25b5fa3df1683452354ee8489804ed (diff)
downloadbcm5719-llvm-4cfc8d6afc827f6e1e6cf9bad9829e3dfcb71aa9.tar.gz
bcm5719-llvm-4cfc8d6afc827f6e1e6cf9bad9829e3dfcb71aa9.zip
[MSVC] Use the correct casing of HostX64/HostX86
If accessing the MSVC installation root directly on a case sensitive filesystem, these details matter. Differential Revision: https://reviews.llvm.org/D60627 llvm-svn: 358662
Diffstat (limited to 'clang/lib/Driver/ToolChains/MSVC.cpp')
-rw-r--r--clang/lib/Driver/ToolChains/MSVC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/ToolChains/MSVC.cpp b/clang/lib/Driver/ToolChains/MSVC.cpp
index 1dc20912b85..e3801c55a98 100644
--- a/clang/lib/Driver/ToolChains/MSVC.cpp
+++ b/clang/lib/Driver/ToolChains/MSVC.cpp
@@ -496,7 +496,7 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA,
// its containing bin directory at the top of PATH, followed by the
// native target bin directory.
// e.g. when compiling for x86 on an x64 host, PATH should start with:
- // /bin/HostX64/x86;/bin/HostX64/x64
+ // /bin/Hostx64/x86;/bin/Hostx64/x64
// This doesn't attempt to handle ToolsetLayout::DevDivInternal.
if (TC.getIsVS2017OrNewer() &&
llvm::Triple(llvm::sys::getProcessTriple()).getArch() != TC.getArch()) {
@@ -838,7 +838,7 @@ MSVCToolChain::getSubDirectoryPath(SubDirectoryType Type,
if (VSLayout == ToolsetLayout::VS2017OrNewer) {
const bool HostIsX64 =
llvm::Triple(llvm::sys::getProcessTriple()).isArch64Bit();
- const char *const HostName = HostIsX64 ? "HostX64" : "HostX86";
+ const char *const HostName = HostIsX64 ? "Hostx64" : "Hostx86";
llvm::sys::path::append(Path, "bin", HostName, SubdirName);
} else { // OlderVS or DevDivInternal
llvm::sys::path::append(Path, "bin", SubdirName);
OpenPOWER on IntegriCloud