Skip to content

Commit

Permalink
Implemented string lookup for build.rustflags config key
Browse files Browse the repository at this point in the history
  • Loading branch information
ibabushkin committed Dec 1, 2016
1 parent 7ba70c3 commit 79924b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cargo/ops/cargo_rustc/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,8 @@ fn env_args(config: &Config,
if let Some(args) = config.get_list(&key)? {
let args = args.val.into_iter().map(|a| a.0);
return Ok(args.collect());
} else if let Some(arg) = config.get_string(&key)? {
return Ok(arg.val.split(' ').map(str::to_string).collect());
}

Ok(Vec::new())
Expand Down

0 comments on commit 79924b5

Please sign in to comment.