diff --git a/src/aro/Compilation.zig b/src/aro/Compilation.zig index 71a623f5..aef3a452 100644 --- a/src/aro/Compilation.zig +++ b/src/aro/Compilation.zig @@ -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"); } diff --git a/src/aro/target.zig b/src/aro/target.zig index cbdf351b..2a71c263 100644 --- a/src/aro/target.zig +++ b/src/aro/target.zig @@ -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",