Skip to content

Commit 664d742

Browse files
committed
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]>
1 parent 9cd918b commit 664d742

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
@@ -149,14 +149,14 @@ fn parse_rust_feature_flag<'a>(
149149
if let Some(base_feature) = feature.strip_prefix('+') {
150150
// Skip features that are not target features, but rustc features.
151151
if RUSTC_SPECIFIC_FEATURES.contains(&base_feature) {
152-
return;
152+
continue;
153153
}
154154

155155
callback(base_feature, sess.target.implied_target_features(base_feature), true)
156156
} else if let Some(base_feature) = feature.strip_prefix('-') {
157157
// Skip features that are not target features, but rustc features.
158158
if RUSTC_SPECIFIC_FEATURES.contains(&base_feature) {
159-
return;
159+
continue;
160160
}
161161

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

0 commit comments

Comments
 (0)