Skip to content

Commit

Permalink
Revert "use cc_env instead of path to set the CC configure variable"
Browse files Browse the repository at this point in the history
This reverts commit 42fc19d.
  • Loading branch information
doy-materialize committed Jun 21, 2024
1 parent 42fc19d commit 0c9ebfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ impl Build {
let mut cc = cc::Build::new();
cc.target(target).host(host).warnings(false).opt_level(2);
let compiler = cc.get_compiler();
configure.env("CC", compiler.cc_env());
configure.env("CC", compiler.path());
let path = compiler.path().to_str().unwrap();

// Both `cc::Build` and `./Configure` take into account
Expand Down

0 comments on commit 0c9ebfa

Please sign in to comment.