mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 08:25:01 +01:00
exe
This commit is contained in:
parent
d97dbd6a94
commit
6eaf188597
1 changed files with 5 additions and 1 deletions
|
|
@ -208,7 +208,11 @@ cargo check
|
||||||
|
|
||||||
fn build(path: &Path) -> Result<()> {
|
fn build(path: &Path) -> Result<()> {
|
||||||
let (_tempdir, proj_dir) = setup_dir(path).context("setting up tempdir")?;
|
let (_tempdir, proj_dir) = setup_dir(path).context("setting up tempdir")?;
|
||||||
let cargo_minimize = Path::new("target/debug/cargo-minimize")
|
let mut cargo_minimize_path = PathBuf::from("target/debug/cargo-minimize");
|
||||||
|
if cfg!(windows) {
|
||||||
|
cargo_minimize_path.set_extension("exe");
|
||||||
|
}
|
||||||
|
let cargo_minimize = cargo_minimize_path
|
||||||
.canonicalize()
|
.canonicalize()
|
||||||
.context("canonicalizing target/debug/cargo-minimize")?;
|
.context("canonicalizing target/debug/cargo-minimize")?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue