arm: Fix compilation for Windows ARM targets (#936)

The .arch directive is only relevant for ELF targets, it is
unsupported for COFF and MachO targets.

Before 170bab47c90626a33cd08f2169034600cfd9589c, this was
not an issue as the directive was filtered out by the
ifndef __clang__.
This commit is contained in:
Martin Storsjö 2025-08-22 11:24:57 +03:00 committed by GitHub
parent 170bab47c9
commit 2835f72cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,9 +120,11 @@
#endif
#ifdef __ELF__
/* We require interworking on LDM, which implies ARMv5T,
which implies the existance of BLX. */
.arch armv5t
#endif
/* Note that we use STC and LDC to encode VFP instructions,
so that we do not need ".fpu vfp", nor get that added to