about summary refs log tree commit diff
path: root/build_sysroot
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-08-18 14:49:10 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-08-18 14:49:10 +0200
commit8e400008ff6342f8fa5273259c5f51b7ac056fff (patch)
tree9c65825ae7dcd9e770532c2c833ff64af785bf5c /build_sysroot
parent43e68319fabb4f55071618e2a40ec534f4fbe9bc (diff)
downloadrust-8e400008ff6342f8fa5273259c5f51b7ac056fff.tar.gz
rust-8e400008ff6342f8fa5273259c5f51b7ac056fff.zip
Disable debug assertions for libstd
This is necessary on macOS, because of alignment problems
Diffstat (limited to 'build_sysroot')
-rw-r--r--build_sysroot/Cargo.toml6
1 files changed, 6 insertions, 0 deletions
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