-
Notifications
You must be signed in to change notification settings - Fork 1
/
g.bat
25 lines (14 loc) · 660 Bytes
/
g.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
del *.exe
set incs=-DSTRICT -DNDEBUG -DWIN32 -Izlib -Ibzip2 -DWINDOWS -DMT
set opts=-fstrict-aliasing -fomit-frame-pointer ^
-fno-stack-protector -fno-stack-check -fno-check-new -fpermissive
rem -flto -ffat-lto-objects -Wl,-flto -fuse-linker-plugin -Wl,-O -Wl,--sort-common -Wl,--as-needed -ffunction-sections
rem -fprofile-use -fprofile-correction -fwhole-program
set gcc=C:\MinGW\mingw\bin\g++.exe
set path=%gcc%\..\
del *.exe *.o
%gcc%\..\gcc.exe -c -march=sandybridge -O3 %incs% %opts% @list_c
%gcc% -s -march=sandybridge -std=gnu++1z -O9 %incs% %opts% @list_cpp @list_o -static -o paq8sk.exe
del *.o
pause