| ... | ... | @@ -493,7 +493,7 @@ pub const Object = struct { |
| 493 | 493 | } |
| 494 | 494 | |
| 495 | 495 | // The frontend should eventually offer options to control these. |
| 496 | | if (target.cpu.arch.isAarch64() and target.os.tag == .openbsd) { |
| 496 | if (target.cpu.arch.isAarch64() and (target.os.tag == .openbsd or target.abi.isAndroid())) { |
| 497 | 497 | module_flags.appendAssumeCapacity(try o.builder.metadataTuple(&.{ |
| 498 | 498 | behavior_min, |
| 499 | 499 | (try o.builder.metadataString("branch-target-enforcement")).toMetadata(), |
| ... | ... | @@ -2253,7 +2253,7 @@ pub const Object = struct { |
| 2253 | 2253 | } |
| 2254 | 2254 | |
| 2255 | 2255 | // The frontend should eventually offer options to control these. |
| 2256 | | if (target.cpu.arch.isAarch64() and target.os.tag == .openbsd) { |
| 2256 | if (target.cpu.arch.isAarch64() and (target.os.tag == .openbsd or target.abi.isAndroid())) { |
| 2257 | 2257 | try attributes.addFnAttr(.{ .string = .{ |
| 2258 | 2258 | .kind = try o.builder.string("branch-target-enforcement"), |
| 2259 | 2259 | .value = try o.builder.string(""), |