Andrew Geissler | c723b72 | 2021-01-08 16:14:09 -0600 | [diff] [blame] | 1 | From 0448eddcf2863ebf911e7dd445bca1c7eee2a239 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 5 Jan 2021 13:55:34 -0800 |
| 4 | Subject: [PATCH] blake3: Remove asm checks for sse/avx |
| 5 | |
| 6 | This ends up passing on clang/linux wrongly when building for aarch64 |
| 7 | the check in else part is good to detect the feature support and this |
| 8 | check can be removed, it was setting |
| 9 | |
| 10 | HAVE_ASM_AVX* and HAVE_ASM_SSE* macros which are not used in the build |
| 11 | anyway |
| 12 | |
| 13 | Upstream-Status: Submitted [https://github.com/ccache/ccache/pull/768] |
| 14 | |
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 16 | --- |
| 17 | src/third_party/blake3/CMakeLists.txt | 2 -- |
| 18 | 1 file changed, 2 deletions(-) |
| 19 | |
| 20 | diff --git a/src/third_party/blake3/CMakeLists.txt b/src/third_party/blake3/CMakeLists.txt |
| 21 | index cc24253c..856b5721 100644 |
| 22 | --- a/src/third_party/blake3/CMakeLists.txt |
| 23 | +++ b/src/third_party/blake3/CMakeLists.txt |
| 24 | @@ -25,8 +25,6 @@ function(add_source_if_enabled feature compile_flags intrinsic) |
| 25 | AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) |
| 26 | message(STATUS "Detected unsupported compiler for ${have_feature} - disabled") |
| 27 | set(${have_feature} FALSE) |
| 28 | - elseif(${blake_source_type} STREQUAL "asm") |
| 29 | - check_asm_compiler_flag(${compile_flags} ${have_feature}) |
| 30 | else() |
| 31 | set(CMAKE_REQUIRED_FLAGS ${compile_flags}) |
| 32 | check_c_source_compiles( |
| 33 | -- |
| 34 | 2.30.0 |
| 35 | |