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.
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user