From b767d2e0fdf835dc181bb21c8be69a35671b60b8 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:29:21 +0300 Subject: Add arch flag to assembler to fix build on ARM64 macOS / iOS. --- core/SCsub | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/SCsub') diff --git a/core/SCsub b/core/SCsub index 3814c72877..df3e7a547a 100644 --- a/core/SCsub +++ b/core/SCsub @@ -129,9 +129,8 @@ if env["builtin_zstd"]: "decompress/zstd_decompress_block.c", "decompress/zstd_decompress.c", ] - if env["platform"] in ["android", "linuxbsd", "osx"]: + if env["platform"] in ["android", "iphone", "linuxbsd", "osx"]: # Match platforms with ZSTD_ASM_SUPPORTED in common/portability_macros.h - # iOS x86_64 should be supported in theory, but it fails arm64 build, seems to use host S_compiler. thirdparty_zstd_sources.append("decompress/huf_decompress_amd64.S") thirdparty_zstd_sources = [thirdparty_zstd_dir + file for file in thirdparty_zstd_sources] -- cgit v1.2.3