From 316c5f0769757b3d3f6cc4360086cc954dbe7201 Mon Sep 17 00:00:00 2001 From: Baye Dieng Date: Mon, 27 Feb 2023 23:30:15 +0000 Subject: [PATCH] turn off zstd on arm64 llvm build (#158) --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3eda3bf4..28892a2f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,14 +11,20 @@ set(LLVM_OPTS -DCMAKE_INSTALL_PREFIX:STRING=) if(WIN32) if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") list(APPEND LLVM_OPTS -DLLVM_TARGETS_TO_BUILD:STRING=X86) + # turn off zstd due to potential shared libray issue + list(APPEND LLVM_OPTS -DLLVM_ENABLE_ZSTD:BOOL=OFF) + else() message(FATAL_ERROR "Target CPU is not supported") endif() else() if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") list(APPEND LLVM_OPTS -DLLVM_TARGETS_TO_BUILD:STRING=X86) + list(APPEND LLVM_OPTS -DLLVM_ENABLE_ZSTD:BOOL=OFF) + elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64") list(APPEND LLVM_OPTS -DLLVM_TARGETS_TO_BUILD:STRING=AArch64) + list(APPEND LLVM_OPTS -DLLVM_ENABLE_ZSTD:BOOL=OFF) else() message(FATAL_ERROR "Target CPU is not supported") endif()