aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2021-01-08 10:46:54 -0800
committerGitHub <noreply@github.com>2021-01-08 10:46:54 -0800
commit36cd5101198e0d05407982ce05e20ca854d12435 (patch)
tree3e947837ca1735e6455e2bb128f0dc87b0db32a0 /toolsrc/src
parent2a42024b53ebb512fb5dd63c523338bf26c8489c (diff)
downloadvcpkg-36cd5101198e0d05407982ce05e20ca854d12435.tar.gz
vcpkg-36cd5101198e0d05407982ce05e20ca854d12435.zip
[vcpkg] Fix build for mingw (#15504)
* fix build * stop the templateness none of the major three implementations have string::const_iterator = char const*
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg/base/files.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp
index ce68741d5..afd30bf85 100644
--- a/toolsrc/src/vcpkg/base/files.cpp
+++ b/toolsrc/src/vcpkg/base/files.cpp
@@ -104,6 +104,11 @@ namespace
fs::path fs::u8path(vcpkg::StringView s)
{
+ if (s.size() == 0)
+ {
+ return fs::path();
+ }
+
#if defined(_WIN32)
return fs::path(vcpkg::Strings::to_utf16(s));
#else