You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous algorithm was based in Rust's profile:
* `profile={release,bench}` => `CMAKE_BUILD_TYPE=Release`,
* otherwise => `CMAKE_BUILD_TYPE=Debug`.
The new algorithm takes into account `opt-level` and `debuginfo`:
* `opt-level=0` => `CMAKE_BUILD_TYPE=Debug`
* `opt-level={1,2,3}` and:
* `debug=false` => `CMAKE_BUILD_TYPE=Release`
* otherwise => `CMAKE_BUILD_TYPE=RelWithDebInfo`
* `opt-level={s,z}` => `CMAKE_BUILD_TYPE=MinSizeRel`
The Rust profiles flow into the algorithm when:
* determining the `opt-level` in case its value is unknown: `profile=debug`
implies `opt-level=0`, and otherwise a non-zero `opt-level` is assumed.
Closes#51 .
0 commit comments