Skip to content

Commit d2eade7

Browse files
Download webrtc release to a subdirectory of OUT_DIR (#5)
Attempt to fix a rustc panic that triggers somewhat regularly in macOS CI on zed-industries/zed --------- Co-authored-by: Julia <julia@zed.dev>
1 parent 80bb8f4 commit d2eade7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

webrtc-sys/build/src/lib.rs

Lines changed: 2 additions & 5 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

@@ -83,11 +83,8 @@ pub fn custom_dir() -> Option<path::PathBuf> {
8383
}
8484

8585
/// Location of the downloaded webrtc binaries
86-
/// The reason why we don't use OUT_DIR is because we sometimes need to share the same binaries
87-
/// across multiple crates without dependencies constraints
88-
/// This also has the benefit of not re-downloading the binaries for each crate
8986
pub fn prebuilt_dir() -> path::PathBuf {
90-
let target_dir = scratch::path(SCRATH_PATH);
87+
let target_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
9188
path::Path::new(&target_dir).join(format!(
9289
"livekit/{}-{}/{}",
9390
webrtc_triple(),

0 commit comments

Comments
 (0)