mirror of
https://github.com/NixOS/nix
synced 2025-07-01 00:07:58 +02:00
convert a for more utilities to string_view
This commit is contained in:
parent
558c4ee3e3
commit
0d7fae6a57
8 changed files with 32 additions and 23 deletions
|
@ -107,7 +107,7 @@ Path resolveSymlink(const Path & path)
|
|||
auto target = readLink(path);
|
||||
return hasPrefix(target, "/")
|
||||
? target
|
||||
: dirOf(path) + "/" + target;
|
||||
: concatStrings(dirOf(path), "/", target);
|
||||
}
|
||||
|
||||
std::set<string> resolveTree(const Path & path, PathSet & deps)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue