Skip to content

Commit

Permalink
Merge pull request #28 from MarijnS95/cc
Browse files Browse the repository at this point in the history
compile: Replace ancient `gcc` crate with `cc`
  • Loading branch information
Twinklebear authored Dec 9, 2023
2 parents a5bb02f + 4e33959 commit 0abab86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exclude = [

[dependencies]
bindgen = "0.61.0"
gcc = "0.3.55"
cc = "1"
libc = "0.2.137"
regex = "1.7.0"
semver = "1.0.14"
7 changes: 1 addition & 6 deletions compile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
//! `libclang.lib` to `clang.lib` and place it in your path.
//!
extern crate gcc;
extern crate libc;
extern crate regex;
extern crate semver;

pub mod opt;

pub use bindgen;
Expand Down Expand Up @@ -433,7 +428,7 @@ impl Config {
#[cfg(windows)]
fn assemble(&self, lib: &str, objects: &[PathBuf]) -> ExitStatus {
let target = self.get_target();
let mut lib_cmd = gcc::windows_registry::find_tool(&target, "lib.exe")
let mut lib_cmd = cc::windows_registry::find_tool(&target, "lib.exe")
.expect("Failed to find lib.exe for MSVC toolchain, aborting")
.to_command();
lib_cmd
Expand Down

0 comments on commit 0abab86

Please sign in to comment.