diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-15 01:41:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-07-15 01:45:26 -0400 |
| commit | b23ace27db438652898b671f3417730ddc662101 (patch) | |
| tree | 0b3662eee8ed959cdf6b095b1ba1522c298ce08a /src/main.cpp | |
| parent | aa170a7eff3b15119561d33f9263ceea5c2c7bee (diff) | |
| download | zig-b23ace27db438652898b671f3417730ddc662101.tar.gz zig-b23ace27db438652898b671f3417730ddc662101.zip | |
fix the build on windows
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index e58eb253f7..ce68e53d85 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } |
