
This is a follow up of #10810 , `embed-resource` crate uses a different method to link the manifest file, so this makes moving manifest file to `gpui` possible. Now, examples can run as expected:  TODO: - [ ] check if it builds with gnu toolchain Release Notes: - N/A
13 lines
416 B
Rust
13 lines
416 B
Rust
fn main() {
|
|
// Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.
|
|
// TODO: We shouldn't depend on WebRTC in editor
|
|
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
|
|
|
|
#[cfg(target_os = "windows")]
|
|
{
|
|
#[cfg(target_env = "msvc")]
|
|
{
|
|
println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
|
|
}
|
|
}
|
|
}
|