[gn build] ugly hack to work around sync script for now

This commit is contained in:
Nico Weber 2022-03-24 14:56:42 -04:00
parent 7b498beef0
commit 973acc3db5
1 changed files with 18 additions and 5 deletions

View File

@ -1,10 +1,6 @@
static_library("BLAKE3") { static_library("BLAKE3") {
output_name = "LLVMSupportBlake3" output_name = "LLVMSupportBlake3"
sources = [ sources = [ "blake3.c", "blake3_dispatch.c", "blake3_portable.c" ]
"blake3.c",
"blake3_dispatch.c",
"blake3_portable.c",
]
defines = [ defines = [
"BLAKE3_NO_AVX512", "BLAKE3_NO_AVX512",
"BLAKE3_NO_AVX2", "BLAKE3_NO_AVX2",
@ -13,3 +9,20 @@ static_library("BLAKE3") {
"BLAKE3_USE_NEON=0", "BLAKE3_USE_NEON=0",
] ]
} }
source_set("hack") {
sources = [
"BLAKE3/blake3.c",
"BLAKE3/blake3_avx2_x86-64_unix.S",
"BLAKE3/blake3_avx2_x86-64_windows_gnu.S",
"BLAKE3/blake3_avx512_x86-64_unix.S",
"BLAKE3/blake3_avx512_x86-64_windows_gnu.S",
"BLAKE3/blake3_dispatch.c",
"BLAKE3/blake3_neon.c",
"BLAKE3/blake3_portable.c",
"BLAKE3/blake3_sse2_x86-64_unix.S",
"BLAKE3/blake3_sse2_x86-64_windows_gnu.S",
"BLAKE3/blake3_sse41_x86-64_unix.S",
"BLAKE3/blake3_sse41_x86-64_windows_gnu.S",
]
}