Skip to content

Commit f542b7b

Browse files
authored
build: Support AArch64 FreeBSD (#921)
1 parent 6d9ea11 commit f542b7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tree-sitter-langs-build.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ If VERSION and OS are not spcified, use the defaults of
285285
("linux" (if (string-prefix-p "aarch64" system-configuration)
286286
"aarch64-unknown-linux-gnu"
287287
"x86_64-unknown-linux-gnu"))
288-
("freebsd" "x86_64-unknown-freebsd")
288+
("freebsd" (if (string-prefix-p "aarch64" system-configuration)
289+
"aarch64-unknown-freebsd"
290+
"x86_64-unknown-freebsd"))
289291
("macos" (if (string-prefix-p "aarch64" system-configuration)
290292
"aarch64-apple-darwin"
291293
"x86_64-apple-darwin")))
@@ -318,6 +320,7 @@ from the current state of the grammar repo, without cleanup."
318320
;; Rust's triple -> system toolchain's triple
319321
("aarch64-unknown-linux-gnu" "aarch64-linux-gnu")
320322
("aarch64-apple-darwin" "arm64-apple-macos11")
323+
("aarch64-unknown-freebsd" "aarch64-freebsd")
321324
("nil" nil)
322325
(_ (error "Unsupported cross-compilation target %s" target))))
323326
(let* ((source (tree-sitter-langs--source lang-symbol))

0 commit comments

Comments
 (0)