Restrict use of `use_default_shell_env` to windows. (#647)
Restrict use of `use_default_shell_env` to windows. (#647)

* Reduce the use of `use_default_shell_env` to windows

* Added helper macro for setting up the framework environment

* Apply suggestions from code review

Co-authored-by: James Sharpe <c9a186b75f6276c6b96b08d79d34ef85a7177e4a@zenotech.com>

* Allow action_env to take precedence over cc env

Co-authored-by: James Sharpe <c9a186b75f6276c6b96b08d79d34ef85a7177e4a@zenotech.com>
bazelbuild/rules_foreign_cc,bazelbuild/rules_foreign_cc,bazelbuild/rules_foreign_cc,bazelbuild/rules_foreign_cc