diff options
| author | bors <bors@rust-lang.org> | 2025-05-17 02:50:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-17 02:50:33 +0000 |
| commit | a69bc17fb8026bdc0d24bb1896ff95f0eba1da4e (patch) | |
| tree | bfc30fa4fe6f54b099d75803732deb0e08869c1a /compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | |
| parent | c8bda740ea5c21af42fe4afa907f89805ab2b905 (diff) | |
| parent | d5c5a8251d0a9477ff6383638d5a8fdb2e109819 (diff) | |
| download | rust-a69bc17fb8026bdc0d24bb1896ff95f0eba1da4e.tar.gz rust-a69bc17fb8026bdc0d24bb1896ff95f0eba1da4e.zip | |
Auto merge of #141002 - GuillaumeGomez:subtree-update_cg_gcc_2025-05-14, r=GuillaumeGomez
Subtree update GCC backend 2025 05 14 cc `@antoyo`
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( |
