diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2025-05-20 04:37:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 04:37:19 +0200 |
| commit | 86662dced5b01e3ae93dabf07935c326e1c4ff7b (patch) | |
| tree | ed40b1a03fd6a04ce8c24948efda9d26ec0f2178 /compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | |
| parent | bcf2b59833abf7fcd16bf0feff752e8cb778cfd9 (diff) | |
| parent | 288ca059765372d2f009c840fae7c1e06a9071d8 (diff) | |
| download | rust-86662dced5b01e3ae93dabf07935c326e1c4ff7b.tar.gz rust-86662dced5b01e3ae93dabf07935c326e1c4ff7b.zip | |
Merge pull request #2392 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_codegen_gcc/tools/generate_intrinsics.py')
| -rw-r--r-- | compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py b/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py index 8efed3e43af..181f1e501a4 100644 --- a/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py +++ b/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py @@ -12,7 +12,7 @@ def run_command(command, cwd=None): sys.exit(1) -def clone_repository(repo_name, path, repo_url, sub_paths=None): +def clone_repository(repo_name, path, repo_url, branch="master", sub_paths=None): if os.path.exists(path): while True: choice = input("There is already a `{}` folder, do you want to update it? [y/N]".format(path)) @@ -21,7 +21,7 @@ def clone_repository(repo_name, path, repo_url, sub_paths=None): return elif choice.lower() == "y": print("Updating repository...") - run_command(["git", "pull", "origin"], cwd=path) + run_command(["git", "pull", "origin", branch], cwd=path) return else: print("Didn't understand answer...") @@ -209,6 +209,7 @@ def main(): "llvm-project", llvm_path, "https://github.com/llvm/llvm-project", + branch="main", sub_paths=["llvm/include/llvm/IR", "llvm/include/llvm/CodeGen/"], ) clone_repository( |
