authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-27 02:46:54+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-10 08:53:30+02:00
log65d36be4a80c45897b344e10cc7e63daafcab9fb
treeb114194c7eeed34bd1040370d8f76b5af9fc09ef
parentf9455511faba40ad719fa0e6897ea09ac5fb9d23
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.zig.system: Work around llvm/llvm-project#105978 by disabling vfp2.

https://github.com/llvm/llvm-project/issues/105978

1 files changed, 6 insertions(+), 0 deletions(-)

lib/std/zig/system.zig+6
......@@ -384,6 +384,12 @@ pub fn resolveTargetQuery(query: Target.Query) DetectError!Target {
384384 query.cpu_features_add,
385385 query.cpu_features_sub,
386386 );
387
388 // https://github.com/llvm/llvm-project/issues/105978
389 if (result.cpu.arch.isArmOrThumb() and result.floatAbi() == .soft) {
390 result.cpu.features.removeFeature(@intFromEnum(Target.arm.Feature.vfp2));
391 }
392
387393 return result;
388394}
389395