Common: Fix build with ARM64 clang-cl

This commit is contained in:
Stenzek 2023-10-01 20:47:38 +10:00
parent 9fc736eaa0
commit 68da62ec29
3 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@
<ItemGroup> <ItemGroup>
<MARMASM Include="fastjmp_arm.asm"> <MARMASM Include="fastjmp_arm.asm">
<FileType>Document</FileType> <FileType>Document</FileType>
<ExcludedFromBuild Condition="'$(Platform)'!='ARM64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Platform)'!='ARM64' Or $(Configuration.Contains(Clang))">true</ExcludedFromBuild>
</MARMASM> </MARMASM>
<MASM Include="fastjmp_x86.asm"> <MASM Include="fastjmp_x86.asm">
<FileType>Document</FileType> <FileType>Document</FileType>

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2021 Connor McLaughlin <stenzek@gmail.com> // SPDX-FileCopyrightText: 2021 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
#ifndef _WIN32 #if !defined(_MSC_VER) || defined(__clang__)
#include "fastjmp.h" #include "fastjmp.h"

View file

@ -14,7 +14,7 @@
#include <emmintrin.h> #include <emmintrin.h>
#elif defined(CPU_ARCH_ARM64) #elif defined(CPU_ARCH_ARM64)
#define CPU_ARCH_NEON 1 #define CPU_ARCH_NEON 1
#ifdef _MSC_VER #if defined(_MSC_VER) && !defined(__clang__)
#include <arm64_neon.h> #include <arm64_neon.h>
#else #else
#include <arm_neon.h> #include <arm_neon.h>