diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-27 05:44:03 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-27 05:44:03 -0400 |
| commit | 5fd579a51c44c31b99cf34d9e8ada3b7692b4c43 (patch) | |
| tree | 635d1974a3e7f3de08c9ff20298a2d954adaad08 /src/analyze.cpp | |
| parent | ff2c7946128fac8488e393655e1a3371983b7620 (diff) | |
| download | zig-5fd579a51c44c31b99cf34d9e8ada3b7692b4c43.tar.gz zig-5fd579a51c44c31b99cf34d9e8ada3b7692b4c43.zip | |
macos passing all tests except for building a shared library
see #273
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 82ae972cbf..8275906764 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1968,7 +1968,7 @@ static void resolve_decl_fn(CodeGen *g, TldFn *tld_fn) { if (buf_eql_str(&fn_table_entry->symbol_name, "main")) { g->main_fn = fn_table_entry; - if (g->libc_link_lib == nullptr && tld_fn->base.visib_mod != VisibModExport) { + if (tld_fn->base.visib_mod != VisibModExport) { TypeTableEntry *err_void = get_error_type(g, g->builtin_types.entry_void); TypeTableEntry *actual_return_type = fn_table_entry->type_entry->data.fn.fn_type_id.return_type; if (actual_return_type != err_void) { |
