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

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


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

Reverts llvm/llvm-project#70110

Breaks gn build

>From 7e5b3473ef79e8dd9e04bf7dd0a756efa62f3e9e Mon Sep 17 00:00:00 2001
From: Arthur Eubanks <ayueubanks at gmail.com>
Date: Fri, 6 Mar 2026 10:33:09 -0800
Subject: [PATCH] Revert "[gn build] Guard the BLAKE3 assembly sources with
 platform (#70110)"

This reverts commit c47fb2d2b70841d00c5990582355632d6607bf51.
---
 .../llvm/lib/Support/BLAKE3/BUILD.gn          | 31 +++++++------------
 1 file changed, 12 insertions(+), 19 deletions(-)

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",
+  ]
 }



More information about the llvm-commits mailing list