From ba78ae0ae73ac38a2bb32c618cd145b4d2f9602e Mon Sep 17 00:00:00 2001 From: Sahnvour Date: Sun, 30 Sep 2018 22:59:45 +0200 Subject: Fixes --emit asm on windows and makes C header file generation explicit. (#1612) * build: only do codegen_link when emitting an actual binary. Fixes #1371 * build: only output C header file when explicitely asked to --- src/link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/link.cpp') diff --git a/src/link.cpp b/src/link.cpp index aa0edde61b..a280c31f74 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -34,7 +34,7 @@ static Buf *build_o_raw(CodeGen *parent_gen, const char *oname, Buf *full_path) CodeGen *child_gen = codegen_create(full_path, child_target, OutTypeObj, parent_gen->build_mode, parent_gen->zig_lib_dir); - child_gen->want_h_file = false; + child_gen->out_h_path = nullptr; child_gen->verbose_tokenize = parent_gen->verbose_tokenize; child_gen->verbose_ast = parent_gen->verbose_ast; child_gen->verbose_link = parent_gen->verbose_link; -- cgit v1.2.3