mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00: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) {
|
if (e == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (e->flags & EntityFlag_Disabled) {
|
||||||
|
// ignore the dependencies if it has been `@(disabled=true)`
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (c->decl != nullptr) {
|
if (c->decl != nullptr) {
|
||||||
add_dependency(c->info, c->decl, e);
|
add_dependency(c->info, c->decl, e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user