Tracking issue for --env-set
flag
#118372
Labels
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
--env-set
flag
#118372
Adds a new
--env-set
command line option on rustc. It allows to set environment variables value at compile-time to be used byenv!
andoption_env!
macros.When retrieving and environment variable value, the one specified by
--env-set
will take precedence. For example if you want havePATH=a
in your environment and pass--env-set PATH=env
, then you will have:Steps
--env
compiler flag (withouttracked_env
support) #118368, in Add support for--env
ontracked_env::var
#118830 and in Rename--env
option flag to--env-set
#119884--env-set
option #119926Unresolved questions
--env
variable is passed twice?The text was updated successfully, but these errors were encountered: