aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorNoam Preil <pleasantatk@gmail.com>2020-03-13 15:31:57 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-03-13 15:40:29 -0400
commiteb4d313dbc406b37f6bfdd98988c88c3b8ed542e (patch)
tree1e5e9aaf7296e5ca52592ba6d4758c4201f64389 /src/main.cpp
parent3eff77bfb52accbc16eb831753ff4917fc2b4873 (diff)
downloadzig-eb4d313dbc406b37f6bfdd98988c88c3b8ed542e.tar.gz
zig-eb4d313dbc406b37f6bfdd98988c88c3b8ed542e.zip
Fix compilation with `--no-emit-bin`
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1939606b03..66138dd049 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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);
}
}