From cdb5d2737e92d17c600903bf97ac32d1659ce324 Mon Sep 17 00:00:00 2001 From: Niyas Sait Date: Mon, 16 Aug 2021 11:22:51 +0100 Subject: [PATCH] add support for building on windows/arm64 target --- common_arm64.h | 2 +- ctest.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common_arm64.h b/common_arm64.h index 2270ffba7..029e23886 100644 --- a/common_arm64.h +++ b/common_arm64.h @@ -120,7 +120,7 @@ static inline int blas_quickdivide(blasint x, blasint y){ .text ; .p2align 2 ; .global REALNAME ; -#ifndef __APPLE__ +#if !defined(__APPLE__) && !defined(_WIN32) .type REALNAME, %function ; #endif REALNAME: diff --git a/ctest.c b/ctest.c index 4f18918f5..2afd93f68 100644 --- a/ctest.c +++ b/ctest.c @@ -84,7 +84,7 @@ OS_AIX OS_OSF #endif -#if defined(__WIN32) || defined(__WIN64) || defined(__WINNT) +#if defined(__WIN32) || defined(__WIN64) || defined(_WIN32) || defined(_WIN64) || defined(__WINNT) OS_WINNT #endif @@ -141,7 +141,7 @@ ARCH_SPARC ARCH_IA64 #endif -#if defined(__LP64) || defined(__LP64__) || defined(__ptr64) || defined(__x86_64__) || defined(__amd64__) || defined(__64BIT__) +#if defined(__LP64) || defined(__LP64__) || defined(__ptr64) || defined(__x86_64__) || defined(__amd64__) || defined(__64BIT__) || defined(__aarch64__) BINARY_64 #endif