diff --git a/nl-writer2/src/nl-solver.cc b/nl-writer2/src/nl-solver.cc index 48a32d689..e188b349b 100644 --- a/nl-writer2/src/nl-solver.cc +++ b/nl-writer2/src/nl-solver.cc @@ -554,6 +554,9 @@ void NLSolver::InitAutoStub() { if (!std::filesystem::create_directory(pathstr_)) Utils().myexit("Could not create temp dir '" + pathstr_ + "'"); +#elif __APPLE__ + if (!std::filesystem::create_directory(pathstr_)) + Utils().myexit("Could not create temp dir '" + pathstr_ + "'"); #else if (!mkdtemp((char*)pathstr_.c_str())) Utils().myexit("Could not create a temp dir\n"