From bd74a88bf96228f94283e6821878b70a1712e2a6 Mon Sep 17 00:00:00 2001 From: riidefi <34194588+riidefi@users.noreply.github.com> Date: Wed, 12 Jul 2023 05:59:04 -0600 Subject: [PATCH] [llvm_sighandler] Build in parallel --- source/llvm/Cargo.lock | 12 ++++++++++++ source/llvm/Cargo.toml | 2 +- source/llvm/src/lib.rs | 4 ++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/source/llvm/Cargo.lock b/source/llvm/Cargo.lock index f0b1092a8..1aaed2c8c 100644 --- a/source/llvm/Cargo.lock +++ b/source/llvm/Cargo.lock @@ -65,6 +65,9 @@ name = "cc" version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +dependencies = [ + "jobserver", +] [[package]] name = "cexpr" @@ -141,6 +144,15 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" +[[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/source/llvm/Cargo.toml b/source/llvm/Cargo.toml index 97c57be57..eb960d4a4 100644 --- a/source/llvm/Cargo.toml +++ b/source/llvm/Cargo.toml @@ -13,5 +13,5 @@ libc = "0.2" [build-dependencies] bindgen = "0.57" -cc = "1.0" +cc = { version = "1.0", features = ["parallel"] } glob = "0.3.1" diff --git a/source/llvm/src/lib.rs b/source/llvm/src/lib.rs index 07f7ae595..736ec3b66 100644 --- a/source/llvm/src/lib.rs +++ b/source/llvm/src/lib.rs @@ -8,11 +8,11 @@ pub mod bindings { pub extern "C" fn rsl_init_llvm( argc: *mut ::std::os::raw::c_int, argv: *mut *mut *const ::std::os::raw::c_char, - installPipeSignalExitHandler: ::std::os::raw::c_int, + install_pipe_signal_exit_handler: ::std::os::raw::c_int, ) -> *mut bindings::llvm_InitLLVM { println!("bindings::init_llvm"); unsafe { - bindings::init_llvm(argc, argv, installPipeSignalExitHandler) + bindings::init_llvm(argc, argv, install_pipe_signal_exit_handler) } } #[no_mangle]