rustc_codegen_ssa: Don't skip target-features after crt-static
The current behaviour introduced by commita50a3b8e31would discard any target features specified after crt-static (the only member of RUSTC_SPECIFIC_FEATURES). This is because it returned instead of continuing processing the next flag. Signed-off-by: Jens Reidel <adrian@travitia.xyz> (cherry picked from commit664d742933)
This commit is contained in:
parent
c06b586824
commit
8791ef8a2a
1 changed files with 2 additions and 2 deletions
|
|
@ -176,14 +176,14 @@ fn parse_rust_feature_flag<'a>(
|
|||
if let Some(base_feature) = feature.strip_prefix('+') {
|
||||
// Skip features that are not target features, but rustc features.
|
||||
if RUSTC_SPECIFIC_FEATURES.contains(&base_feature) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
callback(base_feature, sess.target.implied_target_features(base_feature), true)
|
||||
} else if let Some(base_feature) = feature.strip_prefix('-') {
|
||||
// Skip features that are not target features, but rustc features.
|
||||
if RUSTC_SPECIFIC_FEATURES.contains(&base_feature) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
// If `f1` implies `f2`, then `!f2` implies `!f1` -- this is standard logical
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue