Florian Ragwitz pushed to branch wip/rafl/hpc-tixdir at Glasgow Haskell Compiler / GHC Commits: 673b0008 by Florian Ragwitz at 2026-10-19T14:07:05-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, 0777) && 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/673b0008945c76ad98a482ee4ec18416... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/673b0008945c76ad98a482ee4ec18416... 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