From 71bf6b6a97bdf4da797a2c6f7c7b062f665b6d74 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 5 Oct 2023 00:49:15 -0400 Subject: [PATCH] Enable the parallel feature on the cc crate This doesn't seem to help much (libraries are already built in parallel), but it doesn't hurt. --- Cargo.lock | 10 ++++++++++ Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index f381f29793..e2f6207f37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,6 +88,7 @@ version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ + "jobserver", "libc", ] @@ -421,6 +422,15 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +[[package]] +name = "jobserver" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" +dependencies = [ + "libc", +] + [[package]] name = "lazy_static" version = "1.4.0" diff --git a/Cargo.toml b/Cargo.toml index 3123a9e284..26356a9480 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,7 +77,7 @@ predicates = ">= 2, <= 2.1.1" pretty_assertions = "1.3.0" [build-dependencies] -cc = "1.0.83" +cc = { version = "1.0.83", features = ["parallel"] } rayon = "1.7.0" version_check = "0.9.4"