diff --git a/scripts/build_clang_multiarch_win_x64.bat b/scripts/build_clang_multiarch_win_x64.bat index c96a8f9a..85c59976 100644 --- a/scripts/build_clang_multiarch_win_x64.bat +++ b/scripts/build_clang_multiarch_win_x64.bat @@ -1 +1 @@ -clang++ -I../include -O3 -DNDEBUG -DENABLE_MULTIARCH_x86_POPCNT -DENABLE_MULTIARCH_AVX512_VBMI2 ../src/*.cpp ../src/x86/*.cpp ../src/app/*.cpp -o primesieve.exe "C:\Program Files\LLVM\lib\clang\18\lib\windows\clang_rt.builtins-x86_64.lib" +clang++ -I../include -O3 -mpopcnt -DNDEBUG -DENABLE_MULTIARCH_AVX512_VBMI2 ../src/*.cpp ../src/x86/*.cpp ../src/app/*.cpp -o primesieve.exe "C:\Program Files\LLVM\lib\clang\18\lib\windows\clang_rt.builtins-x86_64.lib" diff --git a/scripts/build_mingw64_x64.sh b/scripts/build_mingw64_x64.sh index c219e09d..187f24ff 100755 --- a/scripts/build_mingw64_x64.sh +++ b/scripts/build_mingw64_x64.sh @@ -45,7 +45,7 @@ git pull mkdir build-release cd build-release -g++ -static -O3 -flto -DNDEBUG -D_WIN32_WINNT=0x0A00 -Wall -Wextra -pedantic -I ../include ../src/*.cpp ../src/app/*.cpp -o primesieve.exe +g++ -static -O3 -mpopcnt -flto -DNDEBUG -D_WIN32_WINNT=0x0A00 -Wall -Wextra -pedantic -DENABLE_MULTIARCH_AVX512_VBMI2 -I ../include ../src/*.cpp ../src/x86/*.cpp ../src/app/*.cpp -o primesieve.exe strip primesieve.exe # Create a release zip archive