File tree 2 files changed +27
-2
lines changed
2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,21 @@ include = [
24
24
" src/*.c" ,
25
25
" src/zlib/*.[ch]" ,
26
26
" src/zlib/*.pc.in" ,
27
+ # zlib-ng
28
+ " src/zlib-ng/**.[ch]" ,
29
+ " src/zlib-ng/arch/arm/**.[ch]" ,
30
+ " src/zlib-ng/arch/generic/**.[ch]" ,
31
+ " src/zlib-ng/arch/power/**.[ch]" ,
32
+ " src/zlib-ng/arch/riscv/**.[ch]" ,
33
+ " src/zlib-ng/arch/s390x/**.[ch]" ,
34
+ " src/zlib-ng/arch/x86/**.[ch]" ,
35
+ " src/zlib-ng/*.[ch].in" ,
36
+ " src/zlib-ng/*.pc.in" ,
37
+ " src/zlib-ng/zlib_name_mangling.h.empty" ,
38
+ # zlib-ng cmake
39
+ " src/zlib-ng/CMakeLists.txt" ,
40
+ " src/zlib-ng/zlib.pc.cmakein" ,
41
+ " src/zlib-ng/cmake" ,
27
42
]
28
43
29
44
[workspace ]
@@ -39,7 +54,7 @@ libc = { version = "0.2.43", optional = true }
39
54
40
55
[build-dependencies ]
41
56
pkg-config = " 0.3.9"
42
- cc = " 1.0.18 "
57
+ cc = " 1.0.97 "
43
58
cmake = { version = " 0.1.50" , optional = true }
44
59
vcpkg = " 0.2"
45
60
Original file line number Diff line number Diff line change @@ -11,7 +11,17 @@ struct Build {
11
11
12
12
impl Build {
13
13
fn new ( cfg : cc:: Build ) -> Self {
14
- let is_msvc = cfg. get_compiler ( ) . is_like_msvc ( ) ;
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
+ let mut pb = PathBuf :: from ( env:: var_os ( "OUT_DIR" ) . expect ( "this should always be set" ) ) ;
18
+ pb. push ( "lib" ) ;
19
+ if let Err ( err) = std:: fs:: create_dir_all ( & pb) {
20
+ panic ! ( "failed to create {:?}: {}" , pb, err) ;
21
+ }
22
+
23
+ let is_msvc = cfg. try_get_compiler ( ) . unwrap ( ) . is_like_msvc ( ) ;
24
+
15
25
Self { cfg, is_msvc }
16
26
}
17
27
You can’t perform that action at this time.
0 commit comments