diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-16 14:31:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-16 14:31:54 -0400 |
| commit | 8468ff0fe1466d8b38aff1d265d953b5cc8fefe6 (patch) | |
| tree | 584a749d0d79d662f12454b0e2179dde12ad3056 /src/codegen.cpp | |
| parent | 07d0aee11a5725dc22eeaa116fb59c40a1a7c99c (diff) | |
| parent | 978fab817caacb7bb3ba96fe3ec08bab1c78c1da (diff) | |
| download | zig-8468ff0fe1466d8b38aff1d265d953b5cc8fefe6.tar.gz zig-8468ff0fe1466d8b38aff1d265d953b5cc8fefe6.zip | |
Merge pull request #2507 from ziglang/wasm-libs
improvements to build-lib use case of WebAssembly
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index ecdee4e9e5..7e7c1432e9 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -8548,7 +8548,7 @@ static void gen_root_source(CodeGen *g) { } report_errors_and_maybe_exit(g); - if (!g->is_test_build && g->zig_target->os != OsFreestanding && + if (!g->is_test_build && (g->zig_target->os != OsFreestanding || target_is_wasm(g->zig_target)) && g->zig_target->os != OsUefi && !g->have_c_main && !g->have_winmain && !g->have_winmain_crt_startup && ((g->have_pub_main && g->out_type == OutTypeObj) || g->out_type == OutTypeExe)) |
