From 79924b542a16e428398eff038e225a8d5aeab47d Mon Sep 17 00:00:00 2001 From: Inokentiy Babushkin Date: Thu, 1 Dec 2016 19:57:05 +0100 Subject: [PATCH] Implemented string lookup for `build.rustflags` config key --- src/cargo/ops/cargo_rustc/context.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cargo/ops/cargo_rustc/context.rs b/src/cargo/ops/cargo_rustc/context.rs index d95b7ee75c6..6be2bef024d 100644 --- a/src/cargo/ops/cargo_rustc/context.rs +++ b/src/cargo/ops/cargo_rustc/context.rs @@ -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())