Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main_zig.zig
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,11 @@ pub fn generateMainZigFromTemplate(
" g.dispatchEvents();\n" ++
" // Update profiling pointers (debug only)\n" ++
" if (comptime @TypeOf(runner).profiling_enabled) {\n" ++
" g.script_profile_ptr = @ptrCast(&runner.profile);\n" ++
" g.script_profile_ptr = @ptrCast(@alignCast(&runner.profile));\n" ++
" g.script_profile_count = @TypeOf(runner).script_count;\n" ++
" }\n" ++
" if (comptime PluginSystems.profiling_enabled) {\n" ++
" g.plugin_profile_ptr = @ptrCast(&PluginSystems.plugin_profile);\n" ++
" g.plugin_profile_ptr = @ptrCast(@alignCast(&PluginSystems.plugin_profile));\n" ++
" g.plugin_profile_count = PluginSystems.plugin_system_count;\n" ++
" }\n"
else
Expand All @@ -612,7 +612,7 @@ pub fn generateMainZigFromTemplate(
" }\n" ++
" g.dispatchEvents();\n" ++
" if (comptime @TypeOf(runner).profiling_enabled) {\n" ++
" g.script_profile_ptr = @ptrCast(&runner.profile);\n" ++
" g.script_profile_ptr = @ptrCast(@alignCast(&runner.profile));\n" ++
" g.script_profile_count = @TypeOf(runner).script_count;\n" ++
" }\n";

Expand Down
2 changes: 1 addition & 1 deletion src/templates/build_zig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ pub fn build(b: *std.Build) void {
const sdk_path = getIosSdkPath(b, sdk_name) orelse
@panic("Could not find iOS SDK. Is Xcode installed?");

const host_arch = b.host.result.cpu.arch;
const host_arch = b.graph.host.result.cpu.arch;
const ios_target = if (device_mode)
b.resolveTargetQuery(.{
.cpu_arch = .aarch64,
Expand Down
Loading