diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-13 14:30:15 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-13 14:30:15 -0400 |
| commit | 9ac9633b105b737f2700f1930768a6ea6d4d75c5 (patch) | |
| tree | 5e6cb23b603139e2a326b0a05c5c983a1c88b91b /src/codegen.cpp | |
| parent | ac0cda8df81d5dc7d782ad8a32c0e5b064dd24ec (diff) | |
| download | zig-9ac9633b105b737f2700f1930768a6ea6d4d75c5.tar.gz zig-9ac9633b105b737f2700f1930768a6ea6d4d75c5.zip | |
stage1: put test output artifact back in zig-cache folder
close #1508
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 6f21ceecab..4e28613285 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -8142,7 +8142,7 @@ static void resolve_out_paths(CodeGen *g) { Buf basename = BUF_INIT; buf_init_from_buf(&basename, g->root_out_name); buf_append_str(&basename, target_exe_file_ext(&g->zig_target)); - if (g->enable_cache) { + if (g->enable_cache || g->is_test_build) { os_path_join(&g->artifact_dir, &basename, &g->output_file_path); } else { buf_init_from_buf(&g->output_file_path, &basename); |
