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
Currently, the rustc flags -Copt-level (and -Cdebug-info) is set based on the --compilation_mode.
However, I want to also set some additional flags that should change based on --compilation_mode, such as -Clto=true and -Ccodegen-units=1 on opt (with some other default values on dbg or fastbuild), for example.
Is there some way of achieving this with rules_rust at the moment without wrapper macros with select(..), or is that the preferred approach? I'm using rules_rust through bzlmod if that matters, but I could switch back to WORKSPACE if that makes it easier.
The text was updated successfully, but these errors were encountered:
Hi!
Currently, the rustc flags
-Copt-level
(and-Cdebug-info
) is set based on the--compilation_mode
.However, I want to also set some additional flags that should change based on
--compilation_mode
, such as-Clto=true
and-Ccodegen-units=1
onopt
(with some other default values ondbg
orfastbuild
), for example.Is there some way of achieving this with
rules_rust
at the moment without wrapper macros withselect(..)
, or is that the preferred approach? I'm usingrules_rust
through bzlmod if that matters, but I could switch back toWORKSPACE
if that makes it easier.The text was updated successfully, but these errors were encountered: