iOS lock step keyboard + metal
This commit is contained in:
@@ -267,6 +267,15 @@ pub const LLVMEmitter = struct {
|
||||
defer self.alloc.free(name_z);
|
||||
|
||||
const llvm_global = c.LLVMAddGlobal(self.llvm_module, llvm_ty, name_z.ptr);
|
||||
|
||||
// Extern globals (`<name> : <type> #foreign;`) resolve at link time
|
||||
// to a libSystem / framework symbol — no initializer, default linkage.
|
||||
if (global.is_extern) {
|
||||
c.LLVMSetLinkage(llvm_global, c.LLVMExternalLinkage);
|
||||
self.global_map.put(@intCast(i), llvm_global) catch {};
|
||||
continue;
|
||||
}
|
||||
|
||||
c.LLVMSetLinkage(llvm_global, c.LLVMInternalLinkage);
|
||||
|
||||
// Evaluate comptime initializer if present
|
||||
|
||||
Reference in New Issue
Block a user