-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtest-sample.bat
More file actions
38 lines (33 loc) · 856 Bytes
/
Copy pathtest-sample.bat
File metadata and controls
38 lines (33 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
setlocal
rem Run one sample file at given options
rem reads input from samples\%1
rem creates output in out\%1
rem Provide "x86", "x64" or "arm64" as first param to set target.
if not exist out mkdir out
if "x%1"=="xx86" (
set arch=x86
set hostarch=x86
set target=i686-pc-windows-msvc
shift
) else if "x%1"=="xx64" (
set arch=x64
set hostarch=x64
set target=x86_64-pc-windows-msvc
shift
) else if "x%1"=="xarm64" (
set arch=arm64
set hostarch=x86
set target=aarch64-pc-windows-msvc
shift
) else (
set arch=x64
set hostarch=x64
set target=x86_64-pc-windows-msvc
)
call VsDevCmd -arch=%arch% -host_arch=%hostarch%
set x=%1
shift
cd samples
cargo run --release --target=%target% --features=cli -- %1 %2 %3 %4 %5 %6 %7 %8 %9 %x% ../out/%x%
cd ..