Skip to content

Commit

Permalink
update to Zig 2024.1.0-mach
Browse files Browse the repository at this point in the history
  • Loading branch information
noisegul authored and slimsag committed Jan 9, 2024
1 parent 158f9c7 commit ce38254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ const builtin = @import("builtin");
pub fn build(b: *std.Build) void {
const cross_target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const target = cross_target.toTarget();
const target = cross_target.result;

const config_header = b.addConfigHeader(
.{
.style = .{ .cmake = .{ .path = "config.cmake.h.in" } },
.include_path = "config.h",
},
.{
.CPU_IS_BIG_ENDIAN = target.cpu.arch.endian() == .Big,
.CPU_IS_BIG_ENDIAN = target.cpu.arch.endian() == .big,
.ENABLE_64_BIT_WORDS = target.ptrBitWidth() == 64,
.FLAC__ALIGN_MALLOC_DATA = target.cpu.arch.isX86(),
.FLAC__CPU_ARM64 = target.cpu.arch.isAARCH64(),
Expand Down

0 comments on commit ce38254

Please sign in to comment.