mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Force dependency for @(export) entities
This commit is contained in:
@@ -1842,6 +1842,22 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) {
|
||||
add_dependency_to_set(c, e);
|
||||
}
|
||||
|
||||
for_array(i, c->info.entities) {
|
||||
Entity *e = c->info.entities[i];
|
||||
switch (e->kind) {
|
||||
case Entity_Variable:
|
||||
if (e->Variable.is_export) {
|
||||
add_dependency_to_set(c, e);
|
||||
}
|
||||
break;
|
||||
case Entity_Procedure:
|
||||
if (e->Procedure.is_export) {
|
||||
add_dependency_to_set(c, e);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
add_dependency_to_set(c, start);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user