[llvm] c47fb2d - [gn build] Guard the BLAKE3 assembly sources with platform (#70110)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 07:23:10 PST 2026
Author: Gowtham Tammana
Date: 2026-03-06T20:53:05+05:30
New Revision: c47fb2d2b70841d00c5990582355632d6607bf51
URL: https://github.com/llvm/llvm-project/commit/c47fb2d2b70841d00c5990582355632d6607bf51
DIFF: https://github.com/llvm/llvm-project/commit/c47fb2d2b70841d00c5990582355632d6607bf51.diff
LOG: [gn build] Guard the BLAKE3 assembly sources with platform (#70110)
The source_set target defined for `llvm/lib/Support/BLAKE3` has assembly
files that are specific to x64 platform. Adding the relevant conditional
for this target.
Signed-off-by: Gowtham Tammana <g.tammana at samsung.com>
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 e980be728ed4e..18f382ea3086c 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
@@ -15,16 +15,23 @@ static_library("BLAKE3") {
]
}
-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",
- ]
+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",
+ ]
+ }
+ }
}
More information about the llvm-commits
mailing list