Skip to content

Commit b76d70c

Browse files
download webrtc to a subdirectory of OUT_DIR
Co-authored-by: Julia <[email protected]>
1 parent 80bb8f4 commit b76d70c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webrtc-sys/build/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::{
1717
error::Error,
1818
fs::{self, File},
1919
io::{self, BufRead, Write},
20-
path,
20+
path::{self, PathBuf},
2121
process::Command,
2222
};
2323

@@ -109,8 +109,7 @@ pub fn webrtc_dir() -> path::PathBuf {
109109
if let Some(path) = custom_dir() {
110110
return path;
111111
}
112-
113-
prebuilt_dir()
112+
PathBuf::from(std::env::var("OUT_DIR").unwrap()).join("webrtc-download")
114113
}
115114

116115
pub fn webrtc_defines() -> Vec<(String, Option<String>)> {

0 commit comments

Comments
 (0)