Skip to content

Commit 59b49ef

Browse files
committed
Use c_cfg instead of new gcc::Config
1 parent 9208781 commit 59b49ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,8 @@ impl Config {
254254
c_cfg.static_crt(static_crt);
255255
cxx_cfg.static_crt(static_crt);
256256
}
257-
258-
let c_compiler = gcc::Config::new().get_compiler();
259-
let cxx_compiler = gcc::Config::new().get_compiler();
257+
let c_compiler = c_cfg.get_compiler();
258+
let cxx_compiler = cxx_cfg.get_compiler();
260259

261260
let dst = self.out_dir.clone().unwrap_or_else(|| {
262261
PathBuf::from(getenv_unwrap("OUT_DIR"))

0 commit comments

Comments
 (0)