From 5d79328895ae28a862db6e24b734aa0012461e2d Mon Sep 17 00:00:00 2001 From: liwentao_uiw Date: Thu, 13 Apr 2023 16:57:53 +0800 Subject: [PATCH] Disable zstd in darwin platform Part of darwin system doesn't contain libzstd by default. Since llvm toolchain will release to ohos darwin sdk, it will make the IDE build and debugging crash unfortunately (if developer not install libzstd, and we should make IDE more easy to use). With analysis, zstd is not enable in LLVM12 and it will only disable part of compress function and will not influent llvm basic function. We decide to disable it by default in darwin platform. ISSUE: https://gitee.com/openharmony/third_party_llvm-project/issues/I6VGMG?from=project-issue TEST: LLVMTS Signed-off-by: liwentao_uiw Change-Id: I1e918a844022e110d9dbfb61e91921828b171011 --- llvm-build/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm-build/build.py b/llvm-build/build.py index 1ecf6ec561ff..70c1386b704b 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -442,6 +442,7 @@ class LlvmCore(BuildUtils): llvm_defines['LLDB_ENABLE_PYTHON'] = 'ON' llvm_defines['COMPILER_RT_BUILD_LIBFUZZER'] = 'OFF' llvm_defines['LLVM_BUILD_EXTERNAL_COMPILER_RT'] = 'ON' + llvm_defines['LLVM_ENABLE_ZSTD'] = 'OFF' def llvm_compile_linux_defines(self, llvm_defines, -- Gitee