Created
January 2, 2022 18:14
-
-
Save douglaslimadev1/fb399a3f2d27227ffc373bf6de7e2127 to your computer and use it in GitHub Desktop.
Este script é útil pra quando eu já tenho o código fonte em um arquivo rem dentro de uma pasta e não quero um "ambiente" de build, serve também para quando rem eu preciso construir, debugar e seguir em frente (rapidamente) com um código.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set file_name=%1 | |
| if defined file_name goto :ok | |
| echo. && echo error: must provide a file | |
| :ok | |
| (echo @echo off && echo. && echo cl -nologo -MTd -Gm- -GR- -EHa- -Od -Oi -fp:fast -WX -W4 -wd4201 -wd4100 -wd4189 -wd4505 -FC -Z7 %file_name% /link -subsystem:console -incremental:no -opt:ref) > build.bat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment