Skip to content

Commit bd20718

Browse files
committedDec 2, 2018
make the C part of compiler-builtins opt-out
1 parent d605e1d commit bd20718

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎src/libstd/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ panic_unwind = { path = "../libpanic_unwind", optional = true }
1818
panic_abort = { path = "../libpanic_abort" }
1919
core = { path = "../libcore" }
2020
libc = { path = "../rustc/libc_shim" }
21-
compiler_builtins = { path = "../rustc/compiler_builtins_shim", features = ["c"] }
21+
compiler_builtins = { path = "../rustc/compiler_builtins_shim" }
2222
profiler_builtins = { path = "../libprofiler_builtins", optional = true }
2323
unwind = { path = "../libunwind" }
2424

@@ -43,9 +43,12 @@ cc = "1.0"
4343
build_helper = { path = "../build_helper" }
4444

4545
[features]
46+
default = ["compiler_builtins_c"]
47+
4648
backtrace = []
4749
panic-unwind = ["panic_unwind"]
4850
profiler = ["profiler_builtins"]
51+
compiler_builtins_c = ["compiler_builtins/c"]
4952

5053
# Make panics and failed asserts immediately abort without formatting any message
5154
panic_immediate_abort = ["core/panic_immediate_abort"]

0 commit comments

Comments
 (0)
Please sign in to comment.