[llvm] Revert "[gn build] Guard the BLAKE3 assembly sources with platform" (PR #185077)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 10:33:58 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Arthur Eubanks (aeubanks)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->70110

Breaks gn build

---
Full diff: https://github.com/llvm/llvm-project/pull/185077.diff


1 Files Affected:

- (modified) llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn (+12-19) 


``````````diff
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 18f382ea3086c..e980be728ed4e 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
@@ -15,23 +15,16 @@ static_library("BLAKE3") {
   ]
 }
 
-if (current_cpu == "x64") {
-  source_set("hack") {
-    sources = [ "blake3_neon.c " ]
-    if (current_os == "linux") {
-      sources += [
-        "blake3_avx2_x86-64_unix.S",
-        "blake3_avx512_x86-64_unix.S",
-        "blake3_sse2_x86-64_unix.S",
-        "blake3_sse41_x86-64_unix.S",
-      ]
-    } else if (current_os == "win") {
-      sources += [
-        "blake3_avx2_x86-64_windows_gnu.S",
-        "blake3_avx512_x86-64_windows_gnu.S",
-        "blake3_sse2_x86-64_windows_gnu.S",
-        "blake3_sse41_x86-64_windows_gnu.S",
-      ]
-    }
-  }
+source_set("hack") {
+  sources = [
+    "blake3_avx2_x86-64_unix.S",
+    "blake3_avx2_x86-64_windows_gnu.S",
+    "blake3_avx512_x86-64_unix.S",
+    "blake3_avx512_x86-64_windows_gnu.S",
+    "blake3_neon.c",
+    "blake3_sse2_x86-64_unix.S",
+    "blake3_sse2_x86-64_windows_gnu.S",
+    "blake3_sse41_x86-64_unix.S",
+    "blake3_sse41_x86-64_windows_gnu.S",
+  ]
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/185077


More information about the llvm-commits mailing list