diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-03-01 17:54:07 +0000 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-03-01 17:54:07 +0000 |
| commit | af443edca17649a6f2e66707746f482caefe3d1a (patch) | |
| tree | 73462f750f41d5bee6f62d071f06e9c85706c6cf /build.bat | |
| parent | 57c35143cf256d6770687aa55af760bcbe40b883 (diff) | |
| download | nissy-core-af443edca17649a6f2e66707746f482caefe3d1a.tar.gz nissy-core-af443edca17649a6f2e66707746f482caefe3d1a.zip | |
Enable arch on windows
Diffstat (limited to 'build.bat')
| -rw-r--r-- | build.bat | 20 |
1 files changed, 15 insertions, 5 deletions
| @@ -9,15 +9,25 @@ if [%1]==[/d] ( | |||
| 9 | 9 | ||
| 10 | SET CC=clang | 10 | SET CC=clang |
| 11 | SET CXX=clang++ | 11 | SET CXX=clang++ |
| 12 | SET ARCH=PORTABLE | ||
| 13 | SET THREADS=16 | 12 | SET THREADS=16 |
| 14 | SET SANITIZE= | 13 | SET SANITIZE= |
| 15 | 14 | ||
| 16 | :: TODO depends on ARCH variable | 15 | SET ARCH=PORTABLE |
| 17 | SET ARCHOPTS= | 16 | clang -march=native -dM -E - < NUL | findstr /C:"__AVX2__" >NUL 2>&1 |
| 18 | :: TODO depends on SANITIZE variable | 17 | if %ERRORLEVEL% EQU 0 ( |
| 19 | SET DFLAGS=-g3 -DDEBUG | 18 | SET ARCH=AVX2 |
| 19 | SET ARCHOPTS=-mavx2 | ||
| 20 | goto :ArchDone | ||
| 21 | ) | ||
| 22 | clang -march=native -dM -E - < NUL | findstr /C:"__ARM_NEON" >NUL 2>&1 | ||
| 23 | if %ERRORLEVEL% EQU 0 ( | ||
| 24 | SET ARCH=NEON | ||
| 25 | goto :ArchDone | ||
| 26 | ) | ||
| 27 | :ArchDone | ||
| 28 | |||
| 20 | 29 | ||
| 30 | SET DFLAGS=-g3 -DDEBUG | ||
| 21 | SET WARNINGS=-Wno-deprecated-declarations | 31 | SET WARNINGS=-Wno-deprecated-declarations |
| 22 | SET VARIABLES=-DTHREADS=%THREADS% -D%ARCH% | 32 | SET VARIABLES=-DTHREADS=%THREADS% -D%ARCH% |
| 23 | SET OFLAGS=-O3 | 33 | SET OFLAGS=-O3 |
