1
1
Fork 0
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:
Eelco Dolstra 2025-12-04 17:40:48 +01:00
parent 9246dca541
commit c555af2c77
6 changed files with 22 additions and 20 deletions

View file

@ -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;
}