This patch does three things:
- Map the /external:I flag to -isystem
- Add support for the /external:env:<var> flag which reads system include paths for the <var> environment variable
- Pick up system include dirs EXTERNAL_INCLUDE in addition to the old INCLUDE environment variable.
/external:env should happen after winsysroot I think. sysroots try to make builds hermetic and env vars defeat that.
I.e. this flag is more like the env var reads below than imsvc above – it reads the env mostly, instead of being a flag mostly.