| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| From: Alexander Khabarov <alexander.khabarov@arm.com> |
| Date: Tue, 24 Oct 2023 14:52:10 +0000 |
| Subject: [PATCH] Use Windows assembly files for BLAKE3 on Windows |
| |
| Use Windows assembly files instead of Unix ones when running on |
| Windows. |
| --- |
| llvm/BUILD.bazel | 13 +++++++++++++ |
| 1 file changed, 13 insertions(+) |
| |
| diff --git a/llvm/BUILD.bazel b/llvm/BUILD.bazel |
| index a7e9398ea..ef5299138 100644 |
| --- a/llvm/BUILD.bazel |
| +++ b/llvm/BUILD.bazel |
| @@ -192,6 +192,14 @@ |
| "echo -e '#undef HANDLE_EXTENSION' >> $@\n", |
| ) |
| |
| +config_setting( |
| + name = "amd64-windows", |
| + constraint_values = [ |
| + "@platforms//os:windows", |
| + "@platforms//cpu:x86_64", |
| + ], |
| +) |
| + |
| cc_library( |
| name = "Support", |
| srcs = glob([ |
| @@ -220,6 +228,12 @@ |
| "@platforms//cpu:aarch64": [ |
| "lib/Support/BLAKE3/blake3_neon.c", |
| ], |
| + ":amd64-windows": [ |
| + "lib/Support/BLAKE3/blake3_avx2_x86-64_windows_msvc.asm", |
| + "lib/Support/BLAKE3/blake3_avx512_x86-64_windows_msvc.asm", |
| + "lib/Support/BLAKE3/blake3_sse2_x86-64_windows_msvc.asm", |
| + "lib/Support/BLAKE3/blake3_sse41_x86-64_windows_msvc.asm", |
| + ], |
| "@platforms//cpu:x86_64": [ |
| "lib/Support/BLAKE3/blake3_avx2_x86-64_unix.S", |
| "lib/Support/BLAKE3/blake3_avx512_x86-64_unix.S", |