Skip to content

Add architecture-aware guards for x86-64 assembly sources#7

Open
tarasalatmiue wants to merge 1 commit into
cypherbits:masterfrom
tarasalatmiue:master
Open

Add architecture-aware guards for x86-64 assembly sources#7
tarasalatmiue wants to merge 1 commit into
cypherbits:masterfrom
tarasalatmiue:master

Conversation

@tarasalatmiue
Copy link
Copy Markdown

fix(build): add architecture-aware guards for x86-64 assembly sources

  • config.m4: Add CPU architecture detection to include SSE/AVX assembly sources only on x86_64/amd64 targets.
  • blake3_dispatch.c: Add a preprocessor guard to disable all x86-64 SIMD dispatch paths on non-x86-64 platforms (including 32-bit x86), preventing build failures on ARM and other architectures as well as potential linker errors on i386/i686 targets.

- config.m4: Add CPU architecture detection to include SSE/AVX assembly sources only on x86_64/amd64 targets.
- blake3_dispatch.c: Add a preprocessor guard to disable all x86-64 SIMD dispatch paths on non-x86-64 platforms (including 32-bit x86), preventing build failures on ARM and other architectures as well as potential linker errors on i386/i686 targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant