Skip to content

Commit

Permalink
Zig update: updates for Android targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Oct 4, 2024
1 parent ecd5c72 commit 3d7c342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/aro/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ fn generateSystemDefines(comp: *Compilation, w: anytype) !void {
),
else => {},
}
if (comp.target.abi == .android) {
if (comp.target.isAndroid()) {
try w.writeAll("#define __ANDROID__ 1\n");
}

Expand Down
1 change: 1 addition & 0 deletions src/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
.eabi => "eabi",
.eabihf => "eabihf",
.android => "android",
.androideabi => "androideabi",
.musl => "musl",
.musleabi => "musleabi",
.musleabihf => "musleabihf",
Expand Down

0 comments on commit 3d7c342

Please sign in to comment.