Skip to content

Commit 4e7b722

Browse files
efenniht-furiosaefenniht
authored andcommitted
Add overflow-checks=false and default target json.
1 parent 588c24d commit 4e7b722

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[unstable]
22
build-std = ["core", "compiler_builtins"]
3+
4+
[build]
5+
target = "kernel-rs/riscv64gc-unknown-none-elfhf.json"

kernel-rs/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ scopeguard = { version = "1.1.0", default-features = false }
2626
arrayvec = { version = "0.5.1", default-features = false }
2727

2828
# Compile options for sysroot packages.
29+
# Cargo currently warns package `compiler_builtins` is not a dependency.
30+
# It is a bug, those options actually work well.
2931
[profile.dev.package.core]
3032
opt-level = 3
3133
debug-assertions = false
3234
codegen-units = 16
35+
overflow-checks = false
3336

3437
[profile.dev.package.compiler_builtins]
3538
opt-level = 3
3639
debug-assertions = false
3740
codegen-units = 16
41+
overflow-checks = false

0 commit comments

Comments
 (0)