Closed
Description
Is your feature request related to a problem? Please describe.
Swift and SwiftPM has several features that are controlled by environment variables. Allowing user to specify the custom environment they want with Swift is necessary to test out some opt-in features.
Describe the solution you'd like
Add a new configuration the controls additional environment variables to pass to Swift and SwiftPM.
Either separate (Swift/SwiftPM) or unified control is acceptable IMO. For full control over the environment, we also need a way to unset existing environment variable.
Describe alternatives you've considered
This is purely addictive and the only workaround today is to modify the system's environment: rather risky and expensive.