fix the build on windows

This commit is contained in:
Andrew Kelley
2019-07-15 01:41:06 -04:00
parent aa170a7eff
commit b23ace27db
5 changed files with 43 additions and 20 deletions

View File

@@ -1229,6 +1229,9 @@ int main(int argc, char **argv) {
return term.code;
} else if (cmd == CmdBuild) {
if (g->enable_cache) {
#if defined(ZIG_OS_WINDOWS)
buf_replace(&g->output_file_path, '/', '\\');
#endif
if (printf("%s\n", buf_ptr(&g->output_file_path)) < 0)
return EXIT_FAILURE;
}