Skip to content

Commit

Permalink
[llvm_sighandler] Build in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
riidefi committed Jul 12, 2023
1 parent e1bbfae commit bd74a88
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions source/llvm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/llvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions source/llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit bd74a88

Please sign in to comment.