Skip to content

Instantly share code, notes, and snippets.

@yasuoohno
Created February 25, 2024 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasuoohno/5ce102bdd947e4613590b192ecaebcff to your computer and use it in GitHub Desktop.
Save yasuoohno/5ce102bdd947e4613590b192ecaebcff to your computer and use it in GitHub Desktop.
enable msvc compiler
@ECHO OFF
SETLOCAL
SET CURRENT_DIR=%CD%
PUSHD "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build"
CMD /K "CALL VCVARS64.BAT & PROMPT $E[1;35m$CMSVC$F %PROMPT% & CD %CURRENT_DIR%"
POPD
ENDLOCAL
EXIT /B 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment