1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-11 19:41:04 +01:00

Fix mingw build

This commit is contained in:
Eelco Dolstra 2025-12-03 19:46:56 +01:00
parent 96d8b54e42
commit c338f9cc5d
16 changed files with 31 additions and 29 deletions

View file

@ -90,7 +90,7 @@ std::string expandTilde(std::string_view path)
// TODO: expand ~user ?
auto tilde = path.substr(0, 2);
if (tilde == "~/" || tilde == "~")
return getHome() + std::string(path.substr(1));
return getHome().string() + std::string(path.substr(1));
else
return std::string(path);
}