From 8499550467376ff8b20613202c26981cab726de5 Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Mon, 15 Jul 2024 18:53:28 +0800 Subject: [PATCH] [Build][LLDB]ninja:error: 'xxxx/'third_party/mingw-w64/mingw-w64-crt/lib64/libpython3.11.dll.a', needed by 'bin/liblldb.dll' Issue:https://gitee.com/openharmony/third_party_llvm-project/issues/IAD1XZ?from=project-issue Test:llvm toolchain compilation Signed-off-by: xwx1135370 --- llvm-build/build.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm-build/build.py b/llvm-build/build.py index 50e1d69c4904..2f6c98dde7a8 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -242,7 +242,7 @@ class BuildConfig(): parser.add_argument( '--build-python', action='store_true', - default=False, + default=True, help='Build Python (not using prebuilt one, currently effective for Windows and OHOS)') parser.add_argument( @@ -1060,9 +1060,7 @@ class LlvmCore(BuildUtils): py_lib_dir = os.path.join(py_dir, 'lib') py_inc_dir = os.path.join(py_dir, 'include') else: - py_dir = os.path.join(self.build_config.REPOROOT_DIR, 'third_party', 'mingw-w64') - py_lib_dir = os.path.join(py_dir, 'mingw-w64-crt', 'lib64') - py_inc_dir = os.path.join(py_dir, 'mingw-w64-headers', 'include') + raise Exception('Invalid Python information, please check if the Python tool is valid') windows_defines['LLDB_RELOCATABLE_PYTHON'] = 'OFF' windows_defines['LLDB_ENABLE_PYTHON'] = 'ON' windows_defines['LLDB_PYTHON_HOME'] = 'python' -- Gitee