File: build_msvc.bat

package info (click to toggle)
primesieve 11.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 972 kB
  • sloc: cpp: 8,219; ansic: 723; sh: 197; makefile: 88
file content (22 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@ECHO OFF

:: === Usage ===
:: This script builds a primesieve binary that is suitable for
:: distribution on the internet. The built primesieve binary
:: will only depend on kernel32.dll.
::
:: 1) Open a Visual Studio Command Prompt
:: 2) cd into primesieve repo
:: 3) Run: scripts/build_msvc.bat

rmdir /s /q build-msvc
mkdir build-msvc
cd build-msvc

cl /O2 /EHsc /W3 /D NDEBUG /I ../include ../src/*.cpp ../src/app/*.cpp /Feprimesieve.exe

echo ""
primesieve.exe --version

echo ""
primesieve.exe --test