build.rs
1fn main() {
2 // Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.
3 // TODO: We shouldn't depend on WebRTC in editor
4 #[cfg(target_os = "macos")]
5 {
6 println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
7 }
8
9 #[cfg(target_os = "windows")]
10 {
11 #[cfg(target_env = "msvc")]
12 {
13 println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
14 }
15 }
16}