From de9b1d1004bb127075e16579639ab5bb1c6bd306 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 27 Sep 2017 11:20:45 -0700 Subject: [PATCH] Enable debug assertions for cretonne-tools. The cton-util executable is used in --release mode to run the file tests. We want assertions enabled for that. This doesn't affect the compiler flags used to build the Cretonne crate when it is used as a dependency in another project. --- cranelift/Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index c576d3990e..45b39ef0a3 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -27,3 +27,11 @@ tempdir="0.3.5" term = "0.4.6" [workspace] + +# Enable debug assertions and parallel compilation when building cretonne-tools +# since they are for testing and development mostly. This doesn't affect the +# flags used to build the Cretonne crate when used as a dependency. +[profile.release] +opt-level = 2 +debug-assertions = true +codegen-units = 4