contrib/makerel: use x86_64_v3 and chmod +x
This commit is contained in:
parent
64a7007a23
commit
911ac3ef6f
6
contrib/makerel
Normal file → Executable file
6
contrib/makerel
Normal file → Executable file
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
zigdir=out/zig-x86_64-linux-musl-baseline
|
zigdir=out/zig-x86_64-linux-musl-x86_64_v3
|
||||||
|
|
||||||
if [[ ! "$PWD" =~ /zig-bootstrap$ ]]; then
|
if [[ ! "$PWD" =~ /zig-bootstrap$ ]]; then
|
||||||
>&2 echo "expected to be in zig-bootstrap directory. Bailing"
|
>&2 echo "expected to be in zig-bootstrap directory. Bailing"
|
||||||
@ -11,7 +11,7 @@ fi
|
|||||||
|
|
||||||
if [[ ! -f "$zigdir/bin/zig" ]]; then
|
if [[ ! -f "$zigdir/bin/zig" ]]; then
|
||||||
>&2 echo "$zigdir/bin/zig not found. Please run:"
|
>&2 echo "$zigdir/bin/zig not found. Please run:"
|
||||||
>&2 echo " ./build -j\$(nproc) x86_64-linux-musl baseline"
|
>&2 echo " ./build -j\$(nproc) x86_64-linux-musl x86_64_v3"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ pushd "$zigdir"
|
|||||||
cp -r "bin/zig" "$outdir"
|
cp -r "bin/zig" "$outdir"
|
||||||
cp -r "lib/zig" "$outdir/lib"
|
cp -r "lib/zig" "$outdir/lib"
|
||||||
tar -cf "$outdir.tar" "$outdir"
|
tar -cf "$outdir.tar" "$outdir"
|
||||||
xz -vk --fast "$outdir.tar"
|
xz -vk -9 -T0 "$outdir.tar"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo "$zigdir/$outdir.tar.xz is ready for use"
|
echo "$zigdir/$outdir.tar.xz is ready for use"
|
||||||
|
Loading…
Reference in New Issue
Block a user