From ce9949725c028c2309e853fa9e779c17da5a8193 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 3 Nov 2016 17:04:40 -0500 Subject: [PATCH] rust: strip whitespace from features This whitespace in here causes rust to not be happy with the features and throw warnings about a feature such as ' +sse3' being unsupported when '+sse3' works just fine. Amazingly will cause rustc to abort when you try to resolve the features to valid configs with the `--print` arg to rustc. --- recipes-devtools/rust/rust.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-devtools/rust/rust.inc b/recipes-devtools/rust/rust.inc index c7c4d6a..b3c7869 100644 --- a/recipes-devtools/rust/rust.inc +++ b/recipes-devtools/rust/rust.inc @@ -254,6 +254,7 @@ def rust_gen_target(d, thing, wd): features = d.getVar('TARGET_LLVM_FEATURES', True) or "" cpu = d.getVar('TARGET_LLVM_CPU', True) features = features or d.getVarFlag('FEATURES', arch, True) or "" + features = features.strip() # build tspec tspec = {}