Discussion:
configure: Add support for building with MSVC/armasm for ARM64
(too old to reply)
Martin Storsjö
2017-12-25 19:40:06 UTC
Permalink
x264 | branch: master | Martin Storsjö <***@martin.st> | Mon Oct 16 22:50:27 2017 +0300| [f745815e593b788d846182c8d42eed4f72f7c33c] | committer: Anton Mitrofanov

configure: Add support for building with MSVC/armasm for ARM64
http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f745815e593b788d846182c8d42eed4f72f7c33c
---

configure | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index e6778614..41793e94 100755
--- a/configure
+++ b/configure
@@ -807,9 +807,13 @@ case $host_cpu in
aarch64)
ARCH="AARCH64"
stack_alignment=16
- AS="${AS-${CC}}"
if [ "$SYS" = MACOSX ] ; then
+ AS="${AS-${CC}}"
ASFLAGS="$ASFLAGS -DPREFIX -DPIC"
+ elif [ "$SYS" = WINDOWS ] ; then
+ AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch aarch64 -as-type armasm -- armasm64 -nologo}"
+ else
+ AS="${AS-${CC}}"
fi
;;
s390|s390x)
@@ -944,7 +948,10 @@ if [ $asm = auto -a $ARCH = ARM ] ; then
fi

if [ $asm = auto -a $ARCH = AARCH64 ] ; then
- if cc_check '' '' '__asm__("cmeq v0.8h, v0.8h, #0");' ; then define HAVE_NEON
+ if [ $compiler = CL ] && cpp_check '' '' 'defined(_M_ARM64)' ; then
+ define HAVE_NEON
+ elif cc_check '' '' '__asm__("cmeq v0.8h, v0.8h, #0");' ; then
+ define HAVE_NEON
ASFLAGS="$ASFLAGS -c"
else
echo "no NEON support, try adding -mfpu=neon to CFLAGS"

Loading...