Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow NIX_* environment variables to be passed to rustc (#466)
Summary: Otherwise if you are running buck2, and by extension rustc, from within nix any C(++) builds will fail. All credit to fnichol who pointed me to [this fix in their prelude](https://github.com/systeminit/si/blob/main/prelude/rust/tools/rustc_action.py#L262). Let me know if this fix is better applied somewhere else. Pull Request resolved: #466 Reviewed By: dtolnay Differential Revision: D66988964 Pulled By: IanChilds fbshipit-source-id: 09752aac79527993a10bb79523179ca2d4ff6d97
- Loading branch information