From 9bfda62e21636798b2908866a5e3a424e6e1b7bf Mon Sep 17 00:00:00 2001 From: Lyupa Anastasia Date: Mon, 10 Jul 2023 17:23:37 +0300 Subject: [PATCH] [build] Use python2.7 to run repo tool Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I7KPP6 Signed-off-by: Lyupa Anastasia --- llvm-build/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm-build/build.py b/llvm-build/build.py index bdb95ba4eba1..e5d323eb1c1a 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -1783,7 +1783,7 @@ class LlvmPackage(BuildUtils): repo_tool = os.path.join(self.build_config.REPOROOT_DIR, '.repo', 'repo', 'repo') if os.path.isfile(repo_tool): self.logger().info('Generating manifest.') - subprocess.run([repo_tool, 'manifest', '-r', '-o', manifest], shell=False, + subprocess.run(['python2.7', repo_tool, 'manifest', '-r', '-o', manifest], shell=False, stdout=subprocess.PIPE, cwd=self.build_config.REPOROOT_DIR) else: self.logger().error('Cannot generate manifest, repo tool not found.') -- Gitee