File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ set(LLVM_BLAKE3_FILES
4
4
blake3_portable.c
5
5
)
6
6
7
+ # Temporary disable assembly until rdar://91050484 is investigated.
8
+ set (CAN_USE_ASSEMBLER FALSE )
9
+
7
10
# The BLAKE3 team recommends using the assembly versions, from the README:
8
11
#
9
12
# "For each of the x86 SIMD instruction sets, four versions are available:
20
23
check_symbol_exists (__aarch64__ "" IS_ARM64 )
21
24
endif ()
22
25
23
- if (IS_X64 )
26
+ if (IS_X64 AND CAN_USE_ASSEMBLER )
24
27
if (MSVC )
25
28
enable_language (ASM_MASM )
26
29
list (APPEND LLVM_BLAKE3_FILES
@@ -52,5 +55,9 @@ if (IS_ARM64)
52
55
)
53
56
endif ()
54
57
58
+ if (IS_X64 AND NOT CAN_USE_ASSEMBLER )
59
+ add_definitions (-DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 -DBLAKE3_NO_SSE2 )
60
+ endif ()
61
+
55
62
add_library (LLVMSupportBlake3 OBJECT EXCLUDE_FROM_ALL ${LLVM_BLAKE3_FILES} )
56
63
llvm_update_compile_flags (LLVMSupportBlake3 )
You can’t perform that action at this time.
0 commit comments