diff --git a/core/SCsub b/core/SCsub index 3b3b9dd419de..dfd8ab17bee6 100644 --- a/core/SCsub +++ b/core/SCsub @@ -143,6 +143,8 @@ if env["builtin_zstd"]: if env["platform"] in ["android", "ios", "linuxbsd", "macos"] and env["arch"] == "x86_64": # Match platforms with ZSTD_ASM_SUPPORTED in common/portability_macros.h thirdparty_zstd_sources.append("decompress/huf_decompress_amd64.S") + else: + env.Append(CPPDEFINES=["ZSTD_DISABLE_ASM"]) thirdparty_zstd_sources = [thirdparty_zstd_dir + file for file in thirdparty_zstd_sources] env_thirdparty.Prepend(CPPPATH=[thirdparty_zstd_dir, thirdparty_zstd_dir + "common"])