Run/Debug control Release/Debug builds

已回答

 Is there a way to have a given Configuration build a release executable when Run is clicked, and a debug executable when Debug is clicked?  I see no way to configure optimization levels and linker options based on which button is clicked.

My Configurations target Rust Cargo commands (eg. cargo run, cargo test, etc.), but I'm not sure that is relevant, from what I can tell.

Thank you for a great tool!

0

Hi, Brad.

Unfortunately, it hasn't been implemented in CLion. Btw, you can use "Run..." and "Debug..." action with shortcuts to simplify running/picking the proper configuration (`File | Settings | Keymap`).

1

请先登录再写评论。