Closed eduardosm closed 2 months ago
Doesn't rustc have some flag to sent env vars nowadays? Should we just reuse that instead of adding our own?
I'm not aware of such flag
https://github.com/rust-lang/compiler-team/issues/653 was the decision to add it. Tracking issue is at https://github.com/rust-lang/rust/issues/118372, so it seems to have been implemented.
Do we want the same flag for compile-time env!
and run-time std::env::var
?
Do we want the same flag for compile-time
env!
and run-timestd::env::var
?
Fair, I guess it makes sense to treat them separately.
@bors r+
:pushpin: Commit 506ffc90c00688bd6c953ed953cf708415dc8b00 has been approved by oli-obk
It is now in the queue for this repository.
:hourglass: Testing commit 506ffc90c00688bd6c953ed953cf708415dc8b00 with merge 98f3480476ece5be10616da7dca0c8d61781989a...
:sunny: Test successful - checks-actions Approved by: oli-obk Pushing 98f3480476ece5be10616da7dca0c8d61781989a to master...
This option allows to pass environment variables to the interpreted program without needing to modify the host environment (which may have undesired effects in some cases).