Cargo.toml setting on dev but not on test

Hello, I'd like to use the cranelift backend but it still doesn't have support for unwinding, which is fairly important for tests.

[unstable]
codegen-backend = true

[profile.dev]
codegen-backend = "cranelift"

How can I specify not to do that with cfg(test)?

Tests use the test profile, so you might be able to override the settings for tests with something like

[unstable]
codegen-backend = true

[profile.dev]
codegen-backend = "cranelift"

[profile.test]
codegen-backend = "llvm"

Related PRs:

3 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.