mirror of
https://github.com/NixOS/nix.git
synced 2025-12-22 17:01:08 +01:00
More mingw fixes
This commit is contained in:
parent
9246dca541
commit
c555af2c77
6 changed files with 22 additions and 20 deletions
|
|
@ -41,9 +41,9 @@ protected:
|
|||
{
|
||||
#ifdef _WIN32
|
||||
// no `mkdtemp` with MinGW
|
||||
auto tmpl = nix::defaultTempDir() + "/tests_nix-store.";
|
||||
auto tmpl = nix::defaultTempDir() / "tests_nix-store.";
|
||||
for (size_t i = 0; true; ++i) {
|
||||
nixDir = tmpl + std::string{i};
|
||||
nixDir = tmpl.string() + std::to_string(i);
|
||||
if (std::filesystem::create_directory(nixDir))
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue