When I check the environment (windows or mingw64 / git bash) while tup is running it does not contain all the environment vars.
I'm running 'env' and then running tup with a Tupfile that looks like this:
: test_set.bat |> env |> %B.mexw64
The resulting environments displayed are not the same. Many vars are missing from the tup run.