Repository navigation
Conversation
sse2neon.h is only included by src/audio/mixer.c when building for aarch64 (x86_64 uses <emmintrin.h>), but it was downloaded on every configure for every platform, from the moving master branch. - Skip the download on non-Apple x86 targets. Apple builds keep it, since universal builds include an arm64 slice. Other or unknown processors keep the previous behavior. - Pin the download to the v1.9.1 release tag and verify it with EXPECTED_HASH, so the header cannot change between configures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sse2neon.his only used bysrc/audio/mixer.con__aarch64__(x86_64 takes the<emmintrin.h>path), butCMakeLists.txtdownloaded it on every configure, on every platform, fromrefs/heads/master.This PR:
CMAKE_SYSTEM_PROCESSORvalues still download it, so ARM toolchains keep the current behavior;v1.9.1release tag and checks it withEXPECTED_HASH, so the header can no longer change silently between builds.Testing
_deps/sse2neonis no longer created.cmake -P. It skips the download forx86_64,AMD64,x86andi686. It downloads foraarch64,arm64,ARM64,armv7l,ppc, an empty value, and Apple x86_64/arm64.file(DOWNLOAD ... EXPECTED_HASH ...)succeeds with the pinned hash and fails as expected with a wrong one.src/audio/mixer.cpasses a syntax-only aarch64 check (clang --target=aarch64-linux-gnu -fsyntax-only) against both the current master header and v1.9.1, with no errors or warnings. I haven't done a full ARM build; the macOS universal CI job should cover that.Note: v1.9.1 is 20 commits behind sse2neon's master, but all the SSE intrinsics used by
mixer.care available in v1.9.1.