mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
268cb948a7
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: ![Screenshot 2024-04-26 111559](https://github.com/zed-industries/zed/assets/14981363/bb040690-8129-490b-83b3-0a7d3cbd4953) TODO: - [ ] check if it builds with gnu toolchain Release Notes: - N/A
14 lines
416 B
Rust
14 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);
|
|
}
|
|
}
|
|
}
|