You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cmd
> call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
> /path/to/shell.exe
$ # Now we can use MSVC, all environment variables are set correctly
This sets $PATH, so I save it using echo $PATH > msvc.sh, then go into msvc.sh and change it to export PATH='...', where ... is the original content. Then I load it using source msvc.sh. If I do this in the above inner most shell, then things keep working.
If I source msvc.sh in a new shell, then I verified that echo $PATH is identical in both shells, but MSVC does not work in the new shell. This leads me to believe that there are other variables that we need to set. It's hard to figure out which ones without #137.
The text was updated successfully, but these errors were encountered:
Right now I do:
This sets
$PATH
, so I save it usingecho $PATH > msvc.sh
, then go intomsvc.sh
and change it toexport PATH='...'
, where...
is the original content. Then I load it usingsource msvc.sh
. If I do this in the above inner most shell, then things keep working.If I
source msvc.sh
in a new shell, then I verified thatecho $PATH
is identical in both shells, but MSVC does not work in the new shell. This leads me to believe that there are other variables that we need to set. It's hard to figure out which ones without #137.The text was updated successfully, but these errors were encountered: