Skip to content

xz: add riscv64 config to disable x86 intrinsics#2382

Open
monkey-jsun wants to merge 1 commit intogoogle:mainfrom
monkey-jsun:pr/xz-riscv64
Open

xz: add riscv64 config to disable x86 intrinsics#2382
monkey-jsun wants to merge 1 commit intogoogle:mainfrom
monkey-jsun:pr/xz-riscv64

Conversation

@monkey-jsun
Copy link
Copy Markdown

xz BUILD.bazel only has config settings for x86_64 and arm64. On
riscv64 it falls through to //conditions:default which uses the x86_64
config defining HAVE_IMMINTRIN_H — but immintrin.h is x86-only.
Add a linux_riscv64 config_setting and expand_template that undefs
x86 intrinsics, mirroring the arm64 approach.

xz BUILD.bazel only has config settings for x86_64 and arm64.  On
riscv64 it falls through to //conditions:default which uses the x86_64
config defining HAVE_IMMINTRIN_H — but immintrin.h is x86-only.
Add a linux_riscv64 config_setting and expand_template that undefs
x86 intrinsics, mirroring the arm64 approach.
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