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 println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
5
6 #[cfg(target_os = "windows")]
7 {
8 #[cfg(target_env = "msvc")]
9 {
10 println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
11 }
12 }
13}