Commit eb4d313dbc

Noam Preil <pleasantatk@gmail.com>
2020-03-13 20:31:57
Fix compilation with `--no-emit-bin`
1 parent 3eff77b
Changed files (1)
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);
                         }
                     }