1

add hangzig command; debug aides for osx

This commit is contained in:
Motiejus Jakštys 2021-06-16 23:30:58 +03:00 committed by Motiejus Jakštys
parent 42bb653d1e
commit 08d8ab2d73
2 changed files with 4 additions and 4 deletions

View File

@ -35,12 +35,12 @@ tasks:
file $(./getpath @zig_sdk//:aarch64-linux-musl //test:gomusl) | \
tee /dev/stderr | grep -q "ELF 64-bit.* ARM aarch64.* statically linked"
- test_x86_64-macos-gnu: |
cd bazel-zig-cc; ../bazel build \
cd bazel-zig-cc; ../bazel build -s \
--platforms @zig_sdk//:x86_64-macos-gnu //test:gognu
file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:gognu) | \
tee /dev/stderr | grep -q "Mach-O 64-bit x86_64 executable"
- test_aarch64-macos-gnu: |
cd bazel-zig-cc; ../bazel build \
cd bazel-zig-cc; ../bazel build -s \
--platforms @zig_sdk//:aarch64-macos-gnu //test:gognu
file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:gognu) | \
tee /dev/stderr | grep -q "Mach-O 64-bit arm64 executable"

View File

@ -11,8 +11,8 @@ outside() {
curl -L "$bzl" -o bazel
chmod +x bazel
fi
exec docker run -ti --rm -v $(pwd):/x -w /x \
--cpus 2 \
exec docker run -ti --rm -v $(pwd):/x -w /x --name hangzig \
--cpuset-cpus 0-1 \
-m 4096MB \
-e CC=/usr/bin/false \
debian:bullseye ./hangzig inside