aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-03-01 17:54:07 +0000
committerSebastiano Tronto <sebastiano@tronto.net>2026-03-01 17:54:07 +0000
commitaf443edca17649a6f2e66707746f482caefe3d1a (patch)
tree73462f750f41d5bee6f62d071f06e9c85706c6cf /build.bat
parent57c35143cf256d6770687aa55af760bcbe40b883 (diff)
downloadnissy-core-af443edca17649a6f2e66707746f482caefe3d1a.tar.gz
nissy-core-af443edca17649a6f2e66707746f482caefe3d1a.zip
Enable arch on windows
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