Last active
January 15, 2022 09:10
-
-
Save dezashibi/5c2a1b1551311b58212f02ef5bf36f47 to your computer and use it in GitHub Desktop.
make_exe.bat C release mode compiler for gcc in windows
This file contains 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 | |
IF "%~1"=="" GOTO noargs | |
mingw32-gcc.exe -Wall -O2 -c %1.c -o %1.o | |
mingw32-g++.exe -o %1.exe %1.o -s | |
PAUSE | |
GOTO endprogram | |
:noargs | |
ECHO you should specify the c file without c extension | |
:endprogram |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment