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
Indeed we would need to confirm which is true, the docs are not enlightening. Even if the former is true the issue will still exist for CARGO_ENCODED_RUSTFLAGS.
cargo contract build
ignores flags passed in through theRUSTFLAGS
environment variable. Variables passed in through the cargo config are also ignored. The reason is likely that they are overridden here:https://github.com/paritytech/cargo-contract/blob/f8f048fbace9c10bb414fb4da0df91df772a12d8/src/cmd/build.rs#L57-L61
They should be merged with the pre-existing options where pre-existing options take precedence in case of conflicts.
Likely a similar change is necessary for metadata generation.
The text was updated successfully, but these errors were encountered: