Skip to content

Commit 5e69cf5

Browse files
committed
Enable compiler-builtins no-asm feature using --features flag
1 parent 9a67125 commit 5e69cf5

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

build_sysroot/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build_sysroot/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ std = { path = "./sysroot_src/library/std", features = ["panic_unwind", "backtra
99
test = { path = "./sysroot_src/library/test" }
1010
proc_macro = { path = "./sysroot_src/library/proc_macro" }
1111

12-
compiler_builtins = { version = "0.1.87", default-features = false, features = ["no-asm"] }
13-
1412
[patch.crates-io]
1513
rustc-std-workspace-core = { path = "./sysroot_src/library/rustc-std-workspace-core" }
1614
rustc-std-workspace-alloc = { path = "./sysroot_src/library/rustc-std-workspace-alloc" }

build_sysroot/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#![no_std]
1+

build_system/build_sysroot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ fn build_clif_sysroot_for_triple(
277277
if channel == "release" {
278278
build_cmd.arg("--release");
279279
}
280+
build_cmd.arg("--features").arg("std/compiler-builtins-no-asm");
280281
build_cmd.arg("--locked");
281282
build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif");
282283
if compiler.triple.contains("apple") {

0 commit comments

Comments
 (0)