diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-18 14:49:10 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-18 14:49:10 +0200 |
| commit | 8e400008ff6342f8fa5273259c5f51b7ac056fff (patch) | |
| tree | 9c65825ae7dcd9e770532c2c833ff64af785bf5c /build_sysroot | |
| parent | 43e68319fabb4f55071618e2a40ec534f4fbe9bc (diff) | |
| download | rust-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.toml | 6 |
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 |
