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

https://github.com/llvm/llvm-project/issues/105978
This commit is contained in:
Alex Rønne Petersen 2024-08-27 02:46:54 +02:00
parent f9455511fa
commit 65d36be4a8
No known key found for this signature in database

View File

@ -384,6 +384,12 @@ pub fn resolveTargetQuery(query: Target.Query) DetectError!Target {
query.cpu_features_add,
query.cpu_features_sub,
);
// https://github.com/llvm/llvm-project/issues/105978
if (result.cpu.arch.isArmOrThumb() and result.floatAbi() == .soft) {
result.cpu.features.removeFeature(@intFromEnum(Target.arm.Feature.vfp2));
}
return result;
}