mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
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.
This commit is contained in:
@@ -413,11 +413,6 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
|
||||
|
||||
let mut features = String::new();
|
||||
|
||||
// Cranelift doesn't support `asm`.
|
||||
if stage != 0 && builder.config.default_codegen_backend().unwrap_or_default() == "cranelift" {
|
||||
features += " compiler-builtins-no-asm";
|
||||
}
|
||||
|
||||
if builder.no_std(target) == Some(true) {
|
||||
features += " compiler-builtins-mem";
|
||||
if !target.starts_with("bpf") {
|
||||
|
||||
Reference in New Issue
Block a user