diff --git a/src/program/generate.cpp b/src/program/generate.cpp index df49bdea..b342b6fb 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -4178,7 +4178,9 @@ int main(int argc, char** argv) { } // #577: the unbuffered choice above was made before the RAM copy existed, from the budget asked for; now the // copy is built, decide again from the RAM it really holds and the expert bytes outside it (on a 96 GB PC - // the file cache keeps those, and every refill after a prompt read the drive instead) + // the file cache keeps those, and every refill after a prompt read the drive instead). Windows only: the + // unbuffered reads exist there alone +#if defined(_WIN32) if (o.mmap_experts && o.resident_budget > 0) { std::string why; const bool was = src.unbuffered(); @@ -4186,6 +4188,7 @@ int main(int argc, char** argv) { std::fprintf(stderr, "strata generate: the file tier reads %s%s (%s)\n", ub ? "unbuffered" : "through the file cache", ub == was ? "" : " (changed)", why.c_str()); } +#endif } if (o.serve) { if (o.spec < 2 || o.mtp.empty() || o.prefill_chunk <= 0 ||