From cf3717470d5262c229ac897d07d435c84ba76b60 Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Sat, 22 Jan 2022 17:20:29 -0800 Subject: [PATCH] Fix the link command --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 825ccd3..aa361d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,7 @@ fn main() { let args: Vec<&str> = args.iter().map(String::as_str).collect(); let (command, must_link) = match command.as_deref() { - Some("link") => ("link", true), + Some("link") => ("build", true), Some(command) => (command, false), None => { print_usage(&mut io::stderr()); @@ -81,7 +81,7 @@ fn main() { eprintln!("Running Cargo"); build_elf(command, &args); - if !["build", "link"].contains(&command) { + if command != "build" && !must_link { // We only do more work if it's a build or build + 3dslink operation return; }