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:
parent
96d8b54e42
commit
c338f9cc5d
16 changed files with 31 additions and 29 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue