mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 09:03:21 +00:00
Fix compilation with --no-emit-bin
This commit is contained in:
parent
3eff77bfb5
commit
eb4d313dbc
@ -1303,7 +1303,7 @@ static int main0(int argc, char **argv) {
|
||||
return main_exit(root_progress_node, EXIT_FAILURE);
|
||||
}
|
||||
} else {
|
||||
if (printf("%s\n", buf_ptr(&g->bin_file_output_path)) < 0)
|
||||
if (g->emit_bin && printf("%s\n", buf_ptr(&g->bin_file_output_path)) < 0)
|
||||
return main_exit(root_progress_node, EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user