diff --git a/llvm-build/build.py b/llvm-build/build.py index 50e1d69c4904d02df5f625a816c69ae57669f0d4..2f6c98dde7a8e94f327351eb69e15eeeb0c658a2 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'