mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-30 11:01:42 +00:00
for iOS simulator builds for apple M1 as base CPU model
This commit is contained in:
@@ -29,10 +29,16 @@ pub fn init(b: *std.Build, deps: *const SharedDeps) !GhosttyXCFramework {
|
||||
b,
|
||||
b.resolveTargetQuery(.{
|
||||
.cpu_arch = .aarch64,
|
||||
.cpu_model = .native,
|
||||
.os_tag = .ios,
|
||||
.os_version_min = Config.osVersionMin(.ios),
|
||||
.abi = .simulator,
|
||||
|
||||
// We force the Apple CPU model because the simulator
|
||||
// doesn't support the generic CPU model as of Zig 0.14 due
|
||||
// to missing "altnzcv" instructions, which is false. This
|
||||
// surely can't be right but we can fix this if/when we get
|
||||
// back to running simulator builds.
|
||||
.cpu_model = .{ .explicit = &std.Target.aarch64.cpu.apple_a17 },
|
||||
}),
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user