From 4ad96db06a742d6dbc4d4bffca8b4df902cea20d Mon Sep 17 00:00:00 2001 From: Lighting Artist Date: Tue, 27 May 2025 15:03:53 +0800 Subject: [PATCH] [BUILD] Change libxml2 to the first compilation Change libxml2 to the first compilation, because libxml2 deletes lib when it copied to llvm_make and llvm-install Change-Id: Ic6457458dc525d6c03bdc46c7ab1ac299f8208d0 Signed-off-by: Lighting Artist --- llvm-build/build.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm-build/build.py b/llvm-build/build.py index f879965bbb24..0b43005266b3 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -3035,6 +3035,12 @@ def main(): if not build_config.no_build_loongarch64: configs.append(('loongarch64', build_utils.open_ohos_triple('loongarch64'))) + build_config.LIBXML2_VERSION = build_utils.get_libxml2_version() + if build_config.LIBXML2_VERSION is None: + raise Exception('LIBXML2 version information not found, please check if the libxml2.spec file exists') + if build_config.build_libxml2: + llvm_libs.build_libxml2(build_utils.use_platform(), llvm_make, llvm_install) + build_config.NCURSES_VERSION = build_utils.get_ncurses_version() if build_config.NCURSES_VERSION is None: raise Exception('NCURSES version information not found, please check if the ncurses.spec file exists') @@ -3053,12 +3059,6 @@ def main(): if build_config.build_libedit: llvm_libs.build_libedit(llvm_make, llvm_install, build_utils.use_platform()) - build_config.LIBXML2_VERSION = build_utils.get_libxml2_version() - if build_config.LIBXML2_VERSION is None: - raise Exception('LIBXML2 version information not found, please check if the libxml2.spec file exists') - if build_config.build_libxml2: - llvm_libs.build_libxml2(build_utils.use_platform(), llvm_make, llvm_install) - if build_config.do_build and need_host and (build_config.build_only_llvm or not build_config.build_only): llvm_core.llvm_compile( build_config.build_name, -- Gitee