Skip to content

Commit e3d7095

Browse files
committed
Use updated cc
1 parent 3ffe600 commit e3d7095

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ libc = { version = "0.2.43", optional = true }
5454

5555
[build-dependencies]
5656
pkg-config = "0.3.9"
57-
cc = "1.0.97"
57+
cc = "1.0.98"
5858
cmake = { version = "0.1.50", optional = true }
5959
vcpkg = "0.2"
6060

zng/cc.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,7 @@ struct Build {
1111

1212
impl Build {
1313
fn new(cfg: cc::Build) -> Self {
14-
// cc currently has a bug where they create a named temp file in a directory
15-
// without ensuring the directory exists first, so apply this workaround
16-
// until it can be fixed upstream
17-
// Can be removed once https://github.com/rust-lang/cc-rs/pull/1072 is merged and released.
18-
let mut pb = PathBuf::from(env::var_os("OUT_DIR").expect("this should always be set"));
19-
pb.push("lib");
20-
if let Err(err) = std::fs::create_dir_all(&pb) {
21-
panic!("failed to create {:?}: {}", pb, err);
22-
}
23-
2414
let is_msvc = cfg.try_get_compiler().unwrap().is_like_msvc();
25-
2615
Self { cfg, is_msvc }
2716
}
2817

0 commit comments

Comments
 (0)