From 76b8225dac6561a72cdc4f58a64648c8921062d5 Mon Sep 17 00:00:00 2001 From: Xu Jun <693788454@qq.com> Date: Tue, 7 Mar 2023 17:48:26 +0800 Subject: [PATCH] Fix key error in build_llvm.py (#2014) --- build-scripts/build_llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/build_llvm.py b/build-scripts/build_llvm.py index 69a9318d..3957f4b8 100755 --- a/build-scripts/build_llvm.py +++ b/build-scripts/build_llvm.py @@ -283,7 +283,7 @@ def main(): return commit_hash is not None repo_addr = llvm_info["repo"] - if os.environ['USE_GIT_SSH'] == "true": + if os.environ.get('USE_GIT_SSH') == "true": repo_addr = llvm_info["repo_ssh"] else: print("To use ssh for git clone, run: export USE_GIT_SSH=true")