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.
This commit is contained in:
Jakob Stoklund Olesen
2017-09-27 11:20:45 -07:00
parent 84471a8431
commit de9b1d1004

View File

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