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.
@@ -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
