mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 08:55:36 +02:00
Fix build on arm64 Linux. (#83)
This commit is contained in:
16
third_party/blake3/BUILD.bazel
vendored
16
third_party/blake3/BUILD.bazel
vendored
@@ -11,10 +11,11 @@ licenses(["unencumbered"]) # Creative Commons CC0
|
|||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "windows",
|
name = "x86_64_windows",
|
||||||
values = {
|
constraint_values = [
|
||||||
"cpu": "x64_windows",
|
"@platforms//cpu:x86_64",
|
||||||
},
|
"@platforms//os:windows",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
@@ -24,13 +25,16 @@ cc_library(
|
|||||||
"c/blake3_dispatch.c",
|
"c/blake3_dispatch.c",
|
||||||
"c/blake3_portable.c",
|
"c/blake3_portable.c",
|
||||||
] + select({
|
] + select({
|
||||||
":windows": [
|
":x86_64_windows": [
|
||||||
"c/blake3_avx2_x86-64_windows_msvc.asm",
|
"c/blake3_avx2_x86-64_windows_msvc.asm",
|
||||||
"c/blake3_avx512_x86-64_windows_msvc.asm",
|
"c/blake3_avx512_x86-64_windows_msvc.asm",
|
||||||
"c/blake3_sse2_x86-64_windows_msvc.asm",
|
"c/blake3_sse2_x86-64_windows_msvc.asm",
|
||||||
"c/blake3_sse41_x86-64_windows_msvc.asm",
|
"c/blake3_sse41_x86-64_windows_msvc.asm",
|
||||||
],
|
],
|
||||||
"//conditions:default": [
|
"@platforms//cpu:arm64": [
|
||||||
|
"c/blake3_neon.c",
|
||||||
|
],
|
||||||
|
"@platforms//cpu:x86_64": [
|
||||||
"c/blake3_avx2_x86-64_unix.S",
|
"c/blake3_avx2_x86-64_unix.S",
|
||||||
"c/blake3_avx512_x86-64_unix.S",
|
"c/blake3_avx512_x86-64_unix.S",
|
||||||
"c/blake3_sse2_x86-64_unix.S",
|
"c/blake3_sse2_x86-64_unix.S",
|
||||||
|
|||||||
Reference in New Issue
Block a user