]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
BLAKE3: Use C version on ancient Clang (#692)
authorAlexander Lanin <alex@lanin.de>
Thu, 22 Oct 2020 17:41:52 +0000 (19:41 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 17:41:52 +0000 (19:41 +0200)
src/third_party/blake3/CMakeLists.txt

index ed09d58595bf65ffc268dea42df4ee75b425563c..ff015b819c1dccea9cfbfe82ae086bdfdc320fab 100644 (file)
@@ -2,7 +2,9 @@ add_library(blake3 STATIC blake3.c blake3_dispatch.c blake3_portable.c)
 
 target_link_libraries(blake3 PRIVATE standard_settings)
 
-if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
+if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 8
+   AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
+            AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0))
   set(blake_source_type asm)
   set(blake_suffix "_x86-64_unix.S")
 else()