-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
30 lines (21 loc) · 862 Bytes
/
Copy pathjustfile
File metadata and controls
30 lines (21 loc) · 862 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
set unstable
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
host_target := `rustc --print host-tuple`
ext := if os() == "windows" { ".exe" } else { "" }
HOME := x"~"
download-net:
python download-net.py
[default]
build-native: (build "native")
build-raw $RUSTFLAGS: download-net
cargo build --release --target={{ host_target }}
build arch outname="icarus" $ICARUS_RELEASE="":
just build-raw "--remap-path-prefix={{HOME}}=/ -Ctarget-cpu={{ arch }}"
cp target/{{ host_target }}/release/icarus{{ ext }} {{ outname }}{{ ext }}
bench: build-native
./icarus{{ ext }} bench
run: build-native
./icarus{{ ext }}
build-release arch suffix:
just build {{ arch }} icarus-{{ os() }}-{{ suffix }} 1
build-x86-releases: (build-release "x86-64" "generic") (build-release "x86-64-v3" "avx2") (build-release "znver5" "avx512")