diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-17 09:25:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 09:25:36 +0000 |
| commit | 0a28db2d5b79f71f0f1b4a05dfb2363da03e268e (patch) | |
| tree | 1731cc687447c2f39c40fa821c2da9c827d6ffd1 /compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | |
| parent | 8bfc88f057206d79618ded5b6b6156c6a9daaaa8 (diff) | |
| parent | ace4c6e01587a213bd0cc78b6d8a981ba403dc81 (diff) | |
| download | rust-0a28db2d5b79f71f0f1b4a05dfb2363da03e268e.tar.gz rust-0a28db2d5b79f71f0f1b4a05dfb2363da03e268e.zip | |
Merge pull request #4324 from RalfJung/rustup
Rustup
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( |
