From 4b6de8a49d373bb1948d33047386ecbdd94c84e1 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Wed, 5 Jun 2024 10:04:12 -0600 Subject: [PATCH] Do not build aarch on anything newer than F41 Signed-off-by: Tom Rix --- python-torch.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-torch.spec b/python-torch.spec index 29dd8c0..e3f7f13 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -188,7 +188,13 @@ Patch104: 0001-use-any-hip.patch Patch105: 0001-disable-use-of-aotriton.patch %endif +# Do not claim aarch64 on anything newer than F41 +%if 0%{?fedora} > 40 ExclusiveArch: x86_64 aarch64 +%else +ExclusiveArch: x86_64 +%endif + %global toolchain gcc %global _lto_cflags %nil