Selaa lähdekoodia

Fix key error in build_llvm.py (#2014)

Xu Jun 3 vuotta sitten
vanhempi
sitoutus
76b8225dac
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      build-scripts/build_llvm.py

+ 1 - 1
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")