[llvm] 973acc3 - [gn build] ugly hack to work around sync script for now

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 11:56:59 PDT 2022


Author: Nico Weber
Date: 2022-03-24T14:56:51-04:00
New Revision: 973acc3db5c7611ce65b93c3ae390dbc33505b72

URL: https://github.com/llvm/llvm-project/commit/973acc3db5c7611ce65b93c3ae390dbc33505b72
DIFF: https://github.com/llvm/llvm-project/commit/973acc3db5c7611ce65b93c3ae390dbc33505b72.diff

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

Added: 
    

Modified: 
    llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
index 6ecc0f620e45a..9076cb95d02c1 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
@@ -1,10 +1,6 @@
 static_library("BLAKE3") {
   output_name = "LLVMSupportBlake3"
-  sources = [
-    "blake3.c",
-    "blake3_dispatch.c",
-    "blake3_portable.c",
-  ]
+  sources = [ "blake3.c", "blake3_dispatch.c", "blake3_portable.c" ]
   defines = [
    "BLAKE3_NO_AVX512",
    "BLAKE3_NO_AVX2",
@@ -13,3 +9,20 @@ static_library("BLAKE3") {
    "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",
+  ]
+}


        


More information about the llvm-commits mailing list