mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
59ed535cdf
When bundled, we will retrieve it out of the `Resources` folder. Locally, we're expected to run `script/download-rust-analyzer` and put `vendor/bin` in our $PATH.
10 lines
235 B
Rust
10 lines
235 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let target = env::var("TARGET").unwrap();
|
|
println!("cargo:rustc-env=TARGET={}", target);
|
|
|
|
if let Ok(bundled) = env::var("BUNDLE") {
|
|
println!("cargo:rustc-env=BUNDLE={}", bundled);
|
|
}
|
|
}
|