Skip to content

Commit 2501bb6

Browse files
committed
Don't disable inline asm usage in compiler-builtins when the cranelift backend is enabled
This was a leftover from when inline asm wasn't universally supported by the cranelift backend yet. It would cause the optimized inline asm intrinsics to be avoided for the standard library distributed with rustup now that we build the cranelift backend by default on nightly for several tier 1 targets. Signed-off-by: onur-ozkan <[email protected]> Author: bjorn3 <[email protected]> Date: Sat Nov 4 12:47:05 2023 +0000
1 parent 55b4945 commit 2501bb6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/bootstrap/src/core/build_steps/compile.rs

-5
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,6 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
413413

414414
let mut features = String::new();
415415

416-
// Cranelift doesn't support `asm`.
417-
if stage != 0 && builder.config.default_codegen_backend().unwrap_or_default() == "cranelift" {
418-
features += " compiler-builtins-no-asm";
419-
}
420-
421416
if builder.no_std(target) == Some(true) {
422417
features += " compiler-builtins-mem";
423418
if !target.starts_with("bpf") {

0 commit comments

Comments
 (0)