-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for --env-set flag #118372
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFC
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFC
Type
Fields
Give feedbackNo fields configured for issues without a type.
Adds a new
--env-setcommand 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-setwill take precedence. For example if you want havePATH=ain your environment and pass--env-set PATH=env, then you will have:Steps
--envcompiler flag (withouttracked_envsupport) #118368, in Add support for--envontracked_env::var#118830 and in Rename--envoption flag to--env-set#119884--env-setoption #119926Unresolved questions
--envvariable is passed twice?