From 36fc9b5f1fc8df9b13d4fbc289e15f750da6717c Mon Sep 17 00:00:00 2001 From: Folkert Date: Thu, 26 Aug 2021 21:39:33 +0200 Subject: [PATCH] update target-lexicon --- Cargo.lock | 4 ++-- cli/Cargo.toml | 2 +- compiler/build/Cargo.toml | 2 +- compiler/gen_dev/Cargo.toml | 2 +- compiler/gen_llvm/Cargo.toml | 2 +- compiler/gen_llvm/src/llvm/build.rs | 2 ++ compiler/test_gen/Cargo.toml | 2 +- compiler/test_mono/Cargo.toml | 2 +- 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4c7a553e59..2990e9eca8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3916,9 +3916,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.10.0" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab0e7238dcc7b40a7be719a25365910f6807bd864f4cce6b2e6b873658e2b19d" +checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff" [[package]] name = "tempfile" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 8288d26d6f..4d8c6bc4b4 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -67,7 +67,7 @@ libc = "0.2" libloading = "0.6" inkwell = { path = "../vendor/inkwell", optional = true } -target-lexicon = "0.10" +target-lexicon = "0.12.2" tempfile = "3.1.0" [dev-dependencies] diff --git a/compiler/build/Cargo.toml b/compiler/build/Cargo.toml index 77dcf1d8a6..4a627fe58d 100644 --- a/compiler/build/Cargo.toml +++ b/compiler/build/Cargo.toml @@ -29,7 +29,7 @@ libloading = "0.6" tempfile = "3.1.0" serde_json = "1.0" inkwell = { path = "../../vendor/inkwell", optional = true } -target-lexicon = "0.10" +target-lexicon = "0.12.2" [dev-dependencies] pretty_assertions = "0.5.1" diff --git a/compiler/gen_dev/Cargo.toml b/compiler/gen_dev/Cargo.toml index 40f35682f7..07b85fd205 100644 --- a/compiler/gen_dev/Cargo.toml +++ b/compiler/gen_dev/Cargo.toml @@ -21,7 +21,7 @@ roc_mono = { path = "../mono" } im = "14" # im and im-rc should always have the same version! im-rc = "14" # im and im-rc should always have the same version! bumpalo = { version = "3.6.1", features = ["collections"] } -target-lexicon = "0.10" +target-lexicon = "0.12.2" libloading = "0.6" object = { version = "0.24", features = ["write"] } diff --git a/compiler/gen_llvm/Cargo.toml b/compiler/gen_llvm/Cargo.toml index 3dd95deeaf..af5107b096 100644 --- a/compiler/gen_llvm/Cargo.toml +++ b/compiler/gen_llvm/Cargo.toml @@ -21,7 +21,7 @@ im = "14" # im and im-rc should always have the same version! im-rc = "14" # im and im-rc should always have the same version! bumpalo = { version = "3.6.1", features = ["collections"] } inkwell = { path = "../../vendor/inkwell" } -target-lexicon = "0.10" +target-lexicon = "0.12.2" [dev-dependencies] roc_can = { path = "../can" } diff --git a/compiler/gen_llvm/src/llvm/build.rs b/compiler/gen_llvm/src/llvm/build.rs index f9afe69e2d..29b8a20867 100644 --- a/compiler/gen_llvm/src/llvm/build.rs +++ b/compiler/gen_llvm/src/llvm/build.rs @@ -3935,6 +3935,8 @@ pub fn get_call_conventions(cc: target_lexicon::CallingConvention) -> u32 { SystemV => C_CALL_CONV, WasmBasicCAbi => C_CALL_CONV, WindowsFastcall => C_CALL_CONV, + AppleAarch64 => C_CALL_CONV, + _ => C_CALL_CONV, } } diff --git a/compiler/test_gen/Cargo.toml b/compiler/test_gen/Cargo.toml index 30f3e1a646..06a457e089 100644 --- a/compiler/test_gen/Cargo.toml +++ b/compiler/test_gen/Cargo.toml @@ -30,7 +30,7 @@ either = "1.6.1" indoc = "0.3.3" libc = "0.2" inkwell = { path = "../../vendor/inkwell" } -target-lexicon = "0.10" +target-lexicon = "0.12.2" libloading = "0.6" [dev-dependencies] diff --git a/compiler/test_mono/Cargo.toml b/compiler/test_mono/Cargo.toml index 7929679da6..3167bbc789 100644 --- a/compiler/test_mono/Cargo.toml +++ b/compiler/test_mono/Cargo.toml @@ -28,7 +28,7 @@ bumpalo = { version = "3.6.1", features = ["collections"] } either = "1.6.1" indoc = "0.3.3" libc = "0.2" -target-lexicon = "0.10" +target-lexicon = "0.12.2" libloading = "0.6" [dev-dependencies]