[gn build] (manually) port 9aa701984d (BLAKE3)

This commit is contained in:
Nico Weber 2022-03-24 14:44:46 -04:00
parent 7aea3ea8c3
commit 0bfa1ab025
3 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,15 @@
static_library("BLAKE3") {
output_name = "LLVMSupportBlake3"
sources = [
"blake3.c",
"blake3_dispatch.c",
"blake3_portable.c",
]
defines = [
"BLAKE3_NO_AVX512",
"BLAKE3_NO_AVX2",
"BLAKE3_NO_SSE41",
"BLAKE3_NO_SSE2",
"BLAKE3_USE_NEON=0",
]
}

View File

@ -1,6 +1,7 @@
static_library("Support") {
output_name = "LLVMSupport"
deps = [
"BLAKE3",
"//llvm/include/llvm/Config:config",
"//llvm/lib/Demangle",
"//llvm/utils/gn/build/libs/pthread",

View File

@ -12,11 +12,14 @@ unittest("SupportTests") {
"AllocatorTest.cpp",
"AnnotationsTest.cpp",
"ArrayRecyclerTest.cpp",
"BLAKE3Test.cpp",
"Base64Test.cpp",
"BinaryStreamTest.cpp",
"BlockFrequencyTest.cpp",
"BranchProbabilityTest.cpp",
"CRCTest.cpp",
"CSKYAttributeParserTest.cpp",
"CSKYTargetParserTest.cpp",
"CachePruningTest.cpp",
"Casting.cpp",
"CheckedArithmeticTest.cpp",
@ -25,8 +28,6 @@ unittest("SupportTests") {
"CompressionTest.cpp",
"ConvertUTFTest.cpp",
"CrashRecoveryTest.cpp",
"CSKYAttributeParserTest.cpp",
"CSKYTargetParserTest.cpp",
"DJBTest.cpp",
"DataExtractorTest.cpp",
"DebugCounterTest.cpp",