--extra_toolchains also needs to know the platform
This commit is contained in:
@@ -22,6 +22,7 @@ tasks:
|
||||
grep -q "ELF 64-bit.* x86-64.* dynamically linked"
|
||||
- test_x86_64-linux-musl: |
|
||||
cd bazel-zig-cc; ./build-and-file \
|
||||
--platforms @io_bazel_rules_go//go/toolchain:linux_amd64_cgo \
|
||||
--extra_toolchains @zig_sdk//:x86_64-linux-musl_toolchain //test:hello | \
|
||||
grep -q "ELF 64-bit.* x86-64.* statically linked"
|
||||
- test_aarch64-linux-gnu: |
|
||||
@@ -30,6 +31,7 @@ tasks:
|
||||
grep -q "ELF 64-bit.* ARM aarch64.* dynamically linked"
|
||||
- test_aarch64-linux-musl: |
|
||||
cd bazel-zig-cc; ./build-and-file \
|
||||
--platforms @io_bazel_rules_go//go/toolchain:linux_arm64_cgo \
|
||||
--extra_toolchains @zig_sdk//:aarch64-linux-musl_toolchain //test:hello | \
|
||||
grep -q "ELF 64-bit.* ARM aarch64.* statically linked"
|
||||
- test_x86_64-macos-gnu: |
|
||||
|
||||
Reference in New Issue
Block a user