mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-15 07:31:26 -07:00
Ff @(disabled=true), do not add that entity's dependencies to the set
This commit is contained in:
@@ -847,6 +847,10 @@ gb_internal void add_declaration_dependency(CheckerContext *c, Entity *e) {
|
||||
if (e == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (e->flags & EntityFlag_Disabled) {
|
||||
// ignore the dependencies if it has been `@(disabled=true)`
|
||||
return;
|
||||
}
|
||||
if (c->decl != nullptr) {
|
||||
add_dependency(c->info, c->decl, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user