File: build-windows-x64.cmd

package info (click to toggle)
xnnpack 0.0~git20241108.4ea82e5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 167,796 kB
  • sloc: ansic: 2,030,850; cpp: 434,872; asm: 96,670; sh: 9,671; python: 7,814; makefile: 21
file content (22 lines) | stat: -rwxr-xr-x 622 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mkdir build\windows
mkdir build\windows\x64

rem Set up the Visual Studio environment for x64 builds.
echo VCVARSALL: %VCVARSALL%
call "%VCVARSALL%" x64

rem Set up the CMake arguments.
set CMAKE_ARGS=-DXNNPACK_LIBRARY_TYPE=static -G="Ninja" -DCMAKE_BUILD_TYPE=Release
rem set CMAKE_ARGS=%CMAKE_ARGS% -DCMAKE_VERBOSE_MAKEFILE=ON

rem Use-specified CMake arguments go last to allow overridding defaults.
set CMAKE_ARGS=%CMAKE_ARGS% %*

echo CMAKE_ARGS: %CMAKE_ARGS%

rem Configure the build.
cd build\windows\x64
cmake ..\..\.. %CMAKE_ARGS%

rem Run the build.
cmake --build . --config Release -- -j %NUMBER_OF_PROCESSORS%