Skip to content

Commit

Permalink
feat: Add aarch64 legacy build detection to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
FeepingCreature committed Oct 26, 2024
1 parent 4816873 commit 87235bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import platform
import subprocess
import sys
from argparse import ArgumentParser
Expand All @@ -15,6 +16,11 @@
parser.add_argument("--legacy", action="store_true", help="Only build legacy languages that were in 1.10.2.")
args = parser.parse_args()

# Force legacy build on aarch64 to avoid timeouts
if platform.machine() == 'aarch64':
print("Force --legacy because the qemu runner is too slow for the full build")
args.legacy = True

repos = []
vendors = []
# https://github.com/tree-sitter/py-tree-sitter/issues/189
Expand Down

0 comments on commit 87235bd

Please sign in to comment.