Florian Ragwitz pushed to branch wip/rafl/hpc-tixdir at Glasgow Haskell Compiler / GHC Commits: f1c7c3e0 by Florian Ragwitz at 2026-10-19T15:30:58-07:00 mkdir on windows, maybe - - - - - 1 changed file: - tix-rle-merge.c Changes: ===================================== tix-rle-merge.c ===================================== @@ -460,8 +460,13 @@ static void output_name(char *buf, size_t cap, size_t group) { if (snprintf(buf, cap, "merged-%04zu.tix", group + 1) >= (int)cap) die("too many output groups"); } +#ifndef _WIN32 +# define MKDIR(p) mkdir((p), 0777) +#else +# define MKDIR(p) mkdir((p)) +#endif static void ensure_empty_output_dir(const char *in, const char *out) { - if (mkdir(out, 0777) && errno != EEXIST) { perror(out); exit(1); } + if (MKDIR(out) && errno != EEXIST) { perror(out); exit(1); } struct stat a, b; if (stat(in, &a) || stat(out, &b) || !S_ISDIR(b.st_mode)) die("invalid input/output directory"); View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f1c7c3e098bdd7857dcf2144c0317f5d... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f1c7c3e098bdd7857dcf2144c0317f5d... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Florian Ragwitz (@rafl)