aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat20
1 files changed, 15 insertions, 5 deletions
diff --git a/build.bat b/build.bat
index 91cc4db..b082e03 100644
--- a/build.bat
+++ b/build.bat
@@ -9,15 +9,25 @@ if [%1]==[/d] (
9 9
10SET CC=clang 10SET CC=clang
11SET CXX=clang++ 11SET CXX=clang++
12SET ARCH=PORTABLE
13SET THREADS=16 12SET THREADS=16
14SET SANITIZE= 13SET SANITIZE=
15 14
16:: TODO depends on ARCH variable 15SET ARCH=PORTABLE
17SET ARCHOPTS= 16clang -march=native -dM -E - < NUL | findstr /C:"__AVX2__" >NUL 2>&1
18:: TODO depends on SANITIZE variable 17if %ERRORLEVEL% EQU 0 (
19SET DFLAGS=-g3 -DDEBUG 18 SET ARCH=AVX2
19 SET ARCHOPTS=-mavx2
20 goto :ArchDone
21)
22clang -march=native -dM -E - < NUL | findstr /C:"__ARM_NEON" >NUL 2>&1
23if %ERRORLEVEL% EQU 0 (
24 SET ARCH=NEON
25 goto :ArchDone
26)
27:ArchDone
28
20 29
30SET DFLAGS=-g3 -DDEBUG
21SET WARNINGS=-Wno-deprecated-declarations 31SET WARNINGS=-Wno-deprecated-declarations
22SET VARIABLES=-DTHREADS=%THREADS% -D%ARCH% 32SET VARIABLES=-DTHREADS=%THREADS% -D%ARCH%
23SET OFLAGS=-O3 33SET OFLAGS=-O3

Generated with cgit - Back to sebastiano.tronto.net