Disable debug assertions for libstd

This is necessary on macOS, because of alignment problems
This commit is contained in:
bjorn3 2019-08-18 14:49:10 +02:00
parent 43e68319fa
commit 8e400008ff

View File

@ -15,5 +15,11 @@ alloc_system = { path = "./alloc_system" }
rustc-std-workspace-core = { path = "./sysroot_src/src/tools/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "./rustc-std-workspace-alloc" }
[profile.dev]
# FIXME On macOS statics and promoted constants have the wrong alignment. This causes a debug
# assertion in `copy_nonoverlapping` to panic.
debug-assertions = false
[profile.release]
debug = true
debug-assertions = false