From 8e400008ff6342f8fa5273259c5f51b7ac056fff Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 18 Aug 2019 14:49:10 +0200 Subject: Disable debug assertions for libstd This is necessary on macOS, because of alignment problems --- build_sysroot/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build_sysroot') diff --git a/build_sysroot/Cargo.toml b/build_sysroot/Cargo.toml index 7776f1bd383..c5bf0705c19 100644 --- a/build_sysroot/Cargo.toml +++ b/build_sysroot/Cargo.toml @@ -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 -- cgit 1.4.1-3-g733a5