diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-31 20:44:48 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-31 20:44:48 +0100 |
| commit | 8fd4fe25d6e8862c77233de61f51994f7dbac33e (patch) | |
| tree | 43d8b518a09308e8f6b9800a7a27c2664e6c3863 /src/checker.cpp | |
| parent | ea1dc5373d507c69b786affa28ae76a4caeec99c (diff) | |
Remove unneeded minimum dependencies
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 2986ccb1a..e18e11a1e 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1720,23 +1720,22 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) { String required_runtime_entities[] = { str_lit("Allocator"), str_lit("Logger"), - str_lit("mem_zero"), str_lit("__init_context"), str_lit("args__"), str_lit("type_table"), str_lit("__type_info_of"), + str_lit("default_allocator"), + str_lit("default_allocator_proc"), str_lit("default_temp_allocator"), - // str_lit("default_temp_allocator_init"), - // str_lit("default_temp_allocator_destroy"), str_lit("default_temp_allocator_proc"), str_lit("Type_Info"), str_lit("Source_Code_Location"), str_lit("Context"), - str_lit("cstring_to_string"), // Is tihs needed? + str_lit("cstring_to_string"), // Is this needed? str_lit("umodti3"), str_lit("udivti3"), @@ -1766,8 +1765,6 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) { if (build_context.no_crt) { String required_no_crt_entities[] = { // NOTE(bill): Only if these exist - str_lit("memcpy"), - str_lit("memmove"), str_lit("_tls_index"), str_lit("_fltused"), }; @@ -1776,15 +1773,6 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) { } } - AstPackage *os = get_core_package(&c->info, str_lit("os")); - String required_os_entities[] = { - str_lit("heap_allocator"), - }; - for (isize i = 0; i < gb_count_of(required_os_entities); i++) { - force_add_dependency_entity(c, os->scope, required_os_entities[i]); - } - - if (!build_context.no_bounds_check) { String bounds_check_entities[] = { str_lit("bounds_check_error"), |