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
This commit is contained in:
Sahnvour
2018-09-30 22:59:45 +02:00
committed by Andrew Kelley
parent 418b2e7d47
commit ba78ae0ae7
4 changed files with 5 additions and 18 deletions

View File

@@ -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;