Add arch flag to assembler to fix build on ARM64 macOS / iOS.
This commit is contained in:
@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user