Skip to content

Commit

Permalink
Merge pull request #6 from NarrativeApp/tvm-config-opts
Browse files Browse the repository at this point in the history
Add user settings to BuildConfig
  • Loading branch information
jroesch authored Aug 5, 2021
2 parents aff6717 + 3c5323f commit e385f06
Show file tree
Hide file tree
Showing 3 changed files with 359 additions and 76 deletions.
5 changes: 4 additions & 1 deletion src/bin/tvm-build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use structopt::StructOpt;
use tracing_subscriber;
use tvm_build::{self, build, BuildConfig};
use tvm_build::{self, build, BuildConfig, UserSettings};

#[derive(StructOpt, Debug)]
#[structopt()]
Expand All @@ -13,6 +13,8 @@ struct InstallCommand {
clean: bool,
#[structopt(short, long)]
verbose: bool,
#[structopt(flatten)]
settings: UserSettings,
}

#[derive(StructOpt, Debug)]
Expand Down Expand Up @@ -49,6 +51,7 @@ fn main() -> anyhow::Result<()> {
config.clean = install_cmd.clean;
config.repository = install_cmd.repository;
config.verbose = install_cmd.verbose;
config.settings = install_cmd.settings;
build(config)?;
Ok(())
}
Expand Down
Loading

0 comments on commit e385f06

Please sign in to comment.