Browse Source

Fix the link command

pull/8/head
AzureMarker 3 years ago
parent
commit
cf3717470d
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 4
      src/main.rs

4
src/main.rs

@ -70,7 +70,7 @@ fn main() { @@ -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() { @@ -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;
}

Loading…
Cancel
Save