Discussion:
arm: Check for __ELF__ instead of !__APPLE__, for using .arch/.fpu
(too old to reply)
Martin Storsjö
2017-12-25 19:40:05 UTC
Permalink
Raw Message
x264 | branch: master | Martin Storsjö <***@martin.st> | Mon Oct 16 22:50:26 2017 +0300| [7b13b31be60ed65bee615bab28c422e2df027ee1] | committer: Anton Mitrofanov

arm: Check for __ELF__ instead of !__APPLE__, for using .arch/.fpu

For windows, when building with armasm, we already filtered these out
with gas-preprocessor.

By filtering them out already in the source, we can also build directly
with clang for windows (which also require wrapping the assembler in
gas-preprocessor for converting instructions to thumb form, but
gas-preprocessor doesn't and shouldn't filter out them in the clang
configuration).
http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=7b13b31be60ed65bee615bab28c422e2df027ee1
---

common/arm/asm.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/arm/asm.S b/common/arm/asm.S
index 619a509d..37a4229e 100644
--- a/common/arm/asm.S
+++ b/common/arm/asm.S
@@ -28,7 +28,7 @@

.syntax unified

-#ifndef __APPLE__
+#ifdef __ELF__
.arch armv7-a
.fpu neon
#endif

Loading...