mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 05:51:05 +01:00
Merge pull request #14617 from vinayakankugoyal/path
Update profiles to use `std::filesystem::path`
This commit is contained in:
commit
0c786f3a3c
20 changed files with 154 additions and 103 deletions
|
|
@ -124,7 +124,7 @@ std::optional<Path> getSelfExe()
|
|||
{
|
||||
static auto cached = []() -> std::optional<Path> {
|
||||
#if defined(__linux__) || defined(__GNU__)
|
||||
return readLink("/proc/self/exe");
|
||||
return readLink(std::filesystem::path{"/proc/self/exe"});
|
||||
#elif defined(__APPLE__)
|
||||
char buf[1024];
|
||||
uint32_t size = sizeof(buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue