Skip to content

Commit

Permalink
Disable using NEON instructions on Windows arm64
Browse files Browse the repository at this point in the history
Otherwise getting

```
blake3.lib(blake3_dispatch.obj) : error LNK2019: unresolved external symbol blake3_hash_many_neon referenced in function blake3_hash_many
bazel-out\x64_windows-opt\bin\src\main\native\windows\windows_jni.dll : fatal error LNK1120: 1 unresolved externals
```

PiperOrigin-RevId: 555467146
Change-Id: Ib34811467d7f0f6980bfa4976b8d1ba2fb041b16
  • Loading branch information
meteorcloudy authored and fweikert committed Aug 22, 2023
1 parent fe41bda commit 8c39828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_party/blake3/blake3.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ cc_library(
"-DBLAKE3_NO_AVX512",
],
"@bazel_tools//src/conditions:windows_x64": [],
"@bazel_tools//src/conditions:windows_arm64": [
"-DBLAKE3_USE_NEON=0",
],
"@bazel_tools//src/conditions:darwin_arm64": [
"-DBLAKE3_USE_NEON=1",
],
Expand Down

0 comments on commit 8c39828

Please sign in to comment.