-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
25 lines (18 loc) · 798 Bytes
/
build.bat
File metadata and controls
25 lines (18 loc) · 798 Bytes
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
echo ==========================================
echo BUILDING SHAURYA (LLVM + LLD LINKER)
echo ==========================================
set CXX=clang++
set CXXFLAGS=-O3 -march=native -std=c++20 -fuse-ld=lld -Wno-deprecated-declarations -Wno-nonportable-include-path
set INCLUDES=-I./include -I./frugally-deep/include -I./json/include -I./FunctionalPlus/include -IC:/msys64/mingw64/include/eigen3 -IC:/msys64/ucrt64/include/eigen3 -I./eigen
set SOURCES=src/Main.cpp src/FixParser.cpp src/NetworkClient.cpp
echo Compiling with LLVM Backend...
%CXX% %CXXFLAGS% %INCLUDES% %SOURCES% -o bin/Shaurya.exe -lws2_32
if %errorlevel% neq 0 (
echo.
echo [ERROR] Build Failed! Check the Eigen path.
pause
exit /b %errorlevel%
)
echo Build Successful! Shaurya is ready.
pause