From 779b79dcd6b6d6cce069f5bee0a6936074652294 Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Mon, 10 Jan 2022 20:16:18 -0800 Subject: [PATCH] Fix RUSTFLAGS not getting passed through --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9d11f45..d945c04 100644 --- a/src/main.rs +++ b/src/main.rs @@ -124,7 +124,8 @@ fn check_rust_version() { } fn build_elf(args: &[&str]) { - let rustflags = format!("-L{}/libctru/lib -lctru ", env::var("DEVKITPRO").unwrap()); + let rustflags = env::var("RUSTFLAGS").unwrap_or_default() + + &format!(" -L{}/libctru/lib -lctru ", env::var("DEVKITPRO").unwrap()); let mut process = Command::new("cargo") .arg("build")