I need to call vcvars32.bat and vcvars64.bat from the same bash script (msys) that builds a different version of my application.
The problem is that even if I can call the batch files using the cmd.exe command, as soon as it returns, the Visual Studio variables are obviously not set.
I cannot call vcvars from an external batch file (for example, msys.bat), which calls a bash script, since I need the same script to call both of them sequentially.
So, is there a way to call vcvars to set the variables correctly in the bash script at runtime?
source share