mirror of
https://github.com/nushell/nushell.git
synced 2024-12-17 20:51:57 +01:00
616e9faaf1
# Description <!-- Thank you for improving Nushell. Please, check our [contributing guide](../CONTRIBUTING.md) and talk to the core team before making major changes. Description of your pull request goes here. **Provide examples and/or screenshots** if your changes affect the user experience. --> The build script is currently re-run on each `cargo build` even when it has not changed. The `rerun-if-changed` line points to `/build.rs`, but `build.rs` is actually located at `/scripts/build.rs`. This updates that path. # User-Facing Changes N/A # Tests + Formatting N/A
19 lines
676 B
Rust
19 lines
676 B
Rust
#[cfg(windows)]
|
|
fn main() {
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set("ProductName", "Nushell");
|
|
res.set("FileDescription", "Nushell");
|
|
res.set("LegalCopyright", "Copyright (C) 2022");
|
|
res.set_icon("assets/nu_logo.ico");
|
|
res.compile()
|
|
.expect("Failed to run the Windows resource compiler (rc.exe)");
|
|
}
|
|
|
|
#[cfg(not(windows))]
|
|
fn main() {
|
|
// Tango uses dynamic linking, to allow us to dynamically change between two bench suit at runtime.
|
|
// This is currently not supported on non nightly rust, on windows.
|
|
println!("cargo:rustc-link-arg-benches=-rdynamic");
|
|
println!("cargo:rerun-if-changed=scripts/build.rs");
|
|
}
|