-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
45 lines (37 loc) · 1 KB
/
Copy pathbuild.bat
File metadata and controls
45 lines (37 loc) · 1 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
echo Compiling Hash Algorithms with optimizations...
echo.
if not exist bin mkdir bin
g++ -O3 -march=native -o bin/Sha256.exe src/Sha256.cpp
if %errorlevel% neq 0 (
echo Error compiling Sha256.cpp
exit /b %errorlevel%
)
g++ -O3 -march=native -o bin/Sha384.exe src/Sha384.cpp
if %errorlevel% neq 0 (
echo Error compiling Sha384.cpp
exit /b %errorlevel%
)
g++ -O3 -march=native -o bin/Sha512.exe src/Sha512.cpp
if %errorlevel% neq 0 (
echo Error compiling Sha512.cpp
exit /b %errorlevel%
)
g++ -O3 -march=native -o bin/Crc.exe src/Crc.cpp
if %errorlevel% neq 0 (
echo Error compiling Crc.cpp
exit /b %errorlevel%
)
g++ -O3 -march=native -o bin/Md5.exe src/Md5.cpp
if %errorlevel% neq 0 (
echo Error compiling Md5.cpp
exit /b %errorlevel%
)
g++ -O3 -march=native -o bin/Sha1.exe src/Sha1.cpp
if %errorlevel% neq 0 (
echo Error compiling Sha1.cpp
exit /b %errorlevel%
)
echo.
echo All executables compiled successfully!
echo Optimization flags: -O3 -march=native