aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-14 11:59:29 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-14 11:59:29 -0600
commit4f29c565d6cf713aa25296e3d84e6788734692de (patch)
tree9d2a5f74acc5735683f999846980daab22202862 /src/main.rs
parent41e2af5ad66352fef6fffa4cffa6347bf56bef03 (diff)
downloadmakers-4f29c565d6cf713aa25296e3d84e6788734692de.tar.gz
makers-4f29c565d6cf713aa25296e3d84e6788734692de.zip
add command-line arguments to MAKEFLAGS so they get inherited by recursive calls
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e0deecc..f5d28b1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -60,7 +60,7 @@ fn main() -> Result<()> {
args.makefile = vec![default_makefile.into()];
}
// Read in the makefile(s) specified.
- // TODO dump command-line args into MAKEFLAGS
+ env::set_var("MAKEFLAGS", args.makeflags());
// TODO dump command-line macros into environment
// TODO add SHELL macro
let mut makefile = Makefile::new(&args);