diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10b22f678..b885fb68b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: with: python-version: "3.10.0" - name: Install cffi and virtualenv - run: pip install cffi virtualenv + run: pip install cffi virtualenv ziglang~=0.9.0 - uses: actions-rs/toolchain@v1 id: rustup with: diff --git a/Cargo.lock b/Cargo.lock index 2e6262bdd..758e42f18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1441,9 +1441,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.34" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f84e92c0f7c9d58328b85a78557813e4bd845130db68d7184635344399423b1" +checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" dependencies = [ "unicode-xid", ] @@ -1480,9 +1480,9 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quote" -version = "1.0.10" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" +checksum = "82fa34aad6be8c6fe936865499578c8a927795b167973e837c149af879fac2fd" dependencies = [ "proc-macro2", ] diff --git a/src/compile.rs b/src/compile.rs index 501661796..c7b547d0d 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -278,6 +278,7 @@ fn compile_target( .to_uppercase() .replace("-", "_"); build_command.env(format!("CARGO_TARGET_{}_LINKER", env_target), &zig_linker); + build_command.env("TARGET_CC", &zig_linker); } if let BridgeModel::BindingsAbi3(_, _) = bindings_crate {