From a94afca82c1ef474b01a6838e378a2e597c85454 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 24 Sep 2023 17:42:57 +0100 Subject: [PATCH] Disable lzma affinity when compiling against musl. --- 3rdparty/lzma.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3rdparty/lzma.cmake b/3rdparty/lzma.cmake index 140248c..04a6a2a 100644 --- a/3rdparty/lzma.cmake +++ b/3rdparty/lzma.cmake @@ -32,6 +32,10 @@ if("${CMAKE_C_COMPILER_ID}" MATCHES "AppleClang" OR "${CMAKE_C_COMPILER_ID}" MAT target_compile_definitions("Aaru.Compression.Native" PUBLIC USE_CLANG) endif() +if(DEFINED AARU_MUSL) + target_compile_definitions("Aaru.Compression.Native" PUBLIC Z7_AFFINITY_DISABLE) +endif() + #target_compile_options(lzma PUBLIC -Wall) #target_compile_options(lzma PUBLIC -Werror)