Skip to content

Commit 8791ef8

Browse files
Gelbpunktcuviper
authored andcommitted
rustc_codegen_ssa: Don't skip target-features after crt-static
The current behaviour introduced by commit a50a3b8 would 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 <[email protected]> (cherry picked from commit 664d742)
1 parent c06b586 commit 8791ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ fn parse_rust_feature_flag<'a>(
176176
if let Some(base_feature) = feature.strip_prefix('+') {
177177
// Skip features that are not target features, but rustc features.
178178
if RUSTC_SPECIFIC_FEATURES.contains(&base_feature) {
179-
return;
179+
continue;
180180
}
181181

182182
callback(base_feature, sess.target.implied_target_features(base_feature), true)
183183
} else if let Some(base_feature) = feature.strip_prefix('-') {
184184
// Skip features that are not target features, but rustc features.
185185
if RUSTC_SPECIFIC_FEATURES.contains(&base_feature) {
186-
return;
186+
continue;
187187
}
188188

189189
// If `f1` implies `f2`, then `!f2` implies `!f1` -- this is standard logical

0 commit comments

Comments
 (0)