Add arch flag to assembler to fix build on ARM64 macOS / iOS.

This commit is contained in:
bruvzg
2022-07-01 11:29:21 +03:00
parent 110248cd57
commit b767d2e0fd
3 changed files with 7 additions and 2 deletions

View File

@ -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]