From eb4d313dbc406b37f6bfdd98988c88c3b8ed542e Mon Sep 17 00:00:00 2001 From: Noam Preil Date: Fri, 13 Mar 2020 15:31:57 -0400 Subject: [PATCH] Fix compilation with `--no-emit-bin` --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }