From 915834c1136efb3e6466738ad70d18a277b48c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ka=CC=81ja=20Lis=CC=8Ckova=CC=81?= Date: Sun, 20 Dec 2020 16:09:17 -0600 Subject: [PATCH] Update CC to version with better target support This is just a minimal set of changes to dependencies. macOS aarch64 support was only introduced in `cc` version 1.0.58, so this now allows tree-sitter to build natively on M1 computers --- Cargo.lock | 4 ++-- cli/Cargo.toml | 2 +- lib/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cd411095..3bed7004 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,9 +123,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.25" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f159dfd43363c4d08055a07703eb7a3406b0dac4d0584d96965a3262db3c9d16" +checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" [[package]] name = "cfg-if" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 48dbbff7..819a13c3 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -20,7 +20,7 @@ harness = false [dependencies] ansi_term = "0.11" -cc = "1.0" +cc = "^1.0.58" atty = "0.2" clap = "2.32" difference = "2.0" diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 8f88966f..e8305c0e 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -24,7 +24,7 @@ include = [ regex = "1" [build-dependencies] -cc = "1.0" +cc = "^1.0.58" [lib] path = "binding_rust/lib.rs"