tree-sitter: fix cross

This commit is contained in:
Michal Vasilek 2022-03-02 14:02:04 +01:00 committed by Echo
parent 5b1b4ba372
commit a93c5322d3

View file

@ -11,7 +11,11 @@ homepage="https://tree-sitter.github.io"
distfiles="https://github.com/tree-sitter/tree-sitter/archive/v${version}.tar.gz"
checksum=2a0445f8172bbf83db005aedb4e893d394e2b7b33251badd3c94c2c5cc37c403
make_check=no # tests require generating fixtures from remote repositories
nocross=yes # fails with current rust
post_patch() {
# fixes an indexmap error when cross compiling
cargo update --package autocfg --precise 1.1.0
}
post_build() {
# Build libtree-sitter, since do_build builds the tree-sitter CLI.