Skip to content

Commit

Permalink
fix arm build again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhalesState committed Dec 15, 2024
1 parent 6a27e2c commit e56b64f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions core/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ if env["builtin_zstd"]:
"decompress/zstd_ddict.c",
"decompress/zstd_decompress_block.c",
"decompress/zstd_decompress.c",
"decompress/huf_decompress_amd64.S",
]
if env["platform"] in ["android", "ios", "linuxbsd", "macos"] and env["arch"] == "x86_64":
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]

Expand Down
2 changes: 1 addition & 1 deletion platform/macos/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def configure(env: "SConsEnvironment"):
## Build type

if env["target"] == "template_release":
if env["arch"] != "arm64":
if not env["arch"] in ["arm64", "arm32"]:
env.Prepend(CCFLAGS=["-msse2"])
elif env.dev_build:
env.Prepend(LINKFLAGS=["-Xlinker", "-no_deduplicate"])
Expand Down
2 changes: 1 addition & 1 deletion platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def configure_mingw(env: "SConsEnvironment"):

# TODO: Re-evaluate the need for this / streamline with common config.
if env["target"] == "template_release":
if env["arch"] != "arm64":
if not env["arch"] in ["arm64", "arm32"]:
env.Append(CCFLAGS=["-msse2"])
elif env.dev_build:
# Allow big objects. It's supposed not to have drawbacks but seems to break
Expand Down

0 comments on commit e56b64f

Please sign in to comment.