1
Fork 0

remove redundant target

nix
Motiejus Jakštys 2021-06-16 14:44:57 +03:00 committed by Motiejus Jakštys
parent f824f4ac8e
commit 18b43049c1
2 changed files with 10 additions and 21 deletions

View File

@ -36,13 +36,11 @@ tasks:
tee /dev/stderr | grep -q "statically linked"
- test_x86_64-macos-gnu: |
cd bazel-zig-cc; ../bazel build \
--platforms @zig_sdk//:x86_64-macos-gnu \
//test:gomacos
file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:gomacos) | \
tee /dev/stderr | grep -q "Mach-O 64-bit arm64 executable"
--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 \
--platforms @zig_sdk//:aarch64-macos-gnu \
//test:gomacos
file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:gomacos) | \
tee /dev/stderr | grep -q "Mach-O 64-bit x86_64 executable"
--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,19 +11,10 @@ go_library(
go_binary(
name = "gognu",
embed = [":go_lib"],
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
)
go_binary(
name = "gomacos",
embed = [":go_lib"],
gc_linkopts = [
"-s",
"-w",
"-buildmode=pie",
],
target_compatible_with = ["@platforms//os:macos"],
gc_linkopts = select({
"@platforms//os:macos": ["-s", "-w", "-buildmode=pie"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
)