Skip to content

Commit

Permalink
Merge pull request #57 from seart-group/bug/m1
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Nov 3, 2023
2 parents 05db193 + 42c8e81 commit 24dcfc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def build(repositories, output_path="libjava-tree-sitter", system=None, arch=Non

if arch and system != "Darwin":
arch = "64" if "64" in arch else "32"
if arch and system == "Darwin":
arch = "arm64" if "aarch64" in arch else arch

output_path = f"{output_path}.{'dylib' if system == 'Darwin' else 'so'}"
env = ""
Expand Down Expand Up @@ -136,7 +138,7 @@ def build(repositories, output_path="libjava-tree-sitter", system=None, arch=Non
parser.add_argument(
"-a",
"--arch",
help="Architecture to build for (x86, x86_64, arm64).",
help="Architecture to build for (x86, x86_64, arm64, aarch64).",
)
parser.add_argument(
"-o",
Expand Down

0 comments on commit 24dcfc0

Please sign in to comment.