mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-18 00:41:26 -07:00
Library names - Only link with used foreign libraries
This commit is contained in:
@@ -985,6 +985,9 @@ void check_identifier(Checker *c, Operand *o, AstNode *n, Type *named_type, Type
|
||||
case Entity_ImportName:
|
||||
error_node(n, "Use of import `%.*s` not in selector", LIT(e->ImportName.name));
|
||||
return;
|
||||
case Entity_LibraryName:
|
||||
error_node(n, "Use of library `%.*s` not in #foreign tag", LIT(e->LibraryName.name));
|
||||
return;
|
||||
|
||||
case Entity_Nil:
|
||||
o->mode = Addressing_Value;
|
||||
|
||||
Reference in New Issue
Block a user