mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
exported global variables get emitted as external in LLVM
This commit is contained in:
1 parent
71d335e5cc
commit
aae168550f
5 files changed
+40
-20
No files matched your search
+1
-1
@@ -1090,7 +1090,7 @@ static void visit_var_decl(Context *c, const VarDecl *var_decl) {
|
||||
|
||||
if (is_extern) {
|
||||
TldVar *tld_var = create_global_var(c, name, create_const_runtime(var_type), is_const);
|
||||
tld_var->var->is_extern = true;
|
||||
tld_var->var->linkage = VarLinkageExternal;
|
||||
add_global(c, &tld_var->base);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user