diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-03-22 11:26:30 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-03-22 11:26:30 -0400 |
| commit | 87bc97daefc8b5d8b665ea2fb2b6c232b80344bc (patch) | |
| tree | edf82e24345f0049fb930cdec36aa299b42c3ca5 /src/all_types.hpp | |
| parent | e1c47d6fe88bb1d79a4484e07d21f126ca9f1003 (diff) | |
| download | zig-87bc97daefc8b5d8b665ea2fb2b6c232b80344bc.tar.gz zig-87bc97daefc8b5d8b665ea2fb2b6c232b80344bc.zip | |
unify main entry point regardless of whether linking libc
closes #248
Diffstat (limited to 'src/all_types.hpp')
| -rw-r--r-- | src/all_types.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp index b3faff2212..35ed95fbdb 100644 --- a/src/all_types.hpp +++ b/src/all_types.hpp @@ -1291,6 +1291,7 @@ struct CodeGen { HashMap<GenericFnTypeId *, FnTableEntry *, generic_fn_type_id_hash, generic_fn_type_id_eql> generic_table; HashMap<Scope *, IrInstruction *, fn_eval_hash, fn_eval_eql> memoized_fn_eval_table; HashMap<ZigLLVMFnKey, LLVMValueRef, zig_llvm_fn_key_hash, zig_llvm_fn_key_eql> llvm_fn_table; + HashMap<Buf *, ConstExprValue *, buf_hash, buf_eql_buf> compile_vars; ZigList<ImportTableEntry *> import_queue; size_t import_queue_index; @@ -1346,8 +1347,8 @@ struct CodeGen { bool is_static; bool strip_debug_symbols; bool want_h_file; - bool have_exported_main; - bool have_exported_panic; + bool have_pub_main; + bool have_pub_panic; bool link_libc; Buf *libc_lib_dir; Buf *libc_static_lib_dir; |
