From ced7dcb2af1b959f618ec11c0a2229c5c3a77695 Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Wed, 26 Mar 2025 13:55:19 +0800 Subject: [PATCH] [BUILD][package]Remove lzma from the lib directory on the Windows platform issue:https://gitee.com/openharmony/third_party_llvm-project/issues/IBWEMG?from=project-issue Test:LLVM toolchain packaging Signed-off-by: xwx1135370 --- llvm-build/build.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm-build/build.py b/llvm-build/build.py index 11f19925a9dd..150290447bd1 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -2151,7 +2151,7 @@ class LlvmLibs(BuildUtils): os.chdir(self.build_config.LLVM_BUILD_DIR) self.check_call(cmd) - if not static: + if not (static or platform_triple.startswith("windows")): self.llvm_package.copy_lzma_to_llvm(platform_triple, llvm_make) self.llvm_package.copy_lzma_to_llvm(platform_triple, llvm_install) @@ -2894,8 +2894,6 @@ class LlvmPackage(BuildUtils): shlib_ext = [f'.{self.build_config.LZMA_VERSION}.dylib'] if self.host_is_linux(): shlib_ext = ['.so'] - if platform_triple.startswith("windows"): - shlib_ext = ['.dll'] lzma_file = [self.merge_install_dir('lzma', platform_triple, 'lib', f'liblzma{ext}') for ext in shlib_ext] -- Gitee