iOS lock step keyboard + metal

This commit is contained in:
agra
2026-05-18 17:40:10 +03:00
parent b43472e6ab
commit f9ecf9d00e
68 changed files with 4794 additions and 203 deletions

View File

@@ -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