1

remove redundant target

This commit is contained in:
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" tee /dev/stderr | grep -q "statically linked"
- test_x86_64-macos-gnu: | - test_x86_64-macos-gnu: |
cd bazel-zig-cc; ../bazel build \ cd bazel-zig-cc; ../bazel build \
--platforms @zig_sdk//:x86_64-macos-gnu \ --platforms @zig_sdk//:x86_64-macos-gnu //test:gognu
//test:gomacos file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:gognu) | \
file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:gomacos) | \ tee /dev/stderr | grep -q "Mach-O 64-bit x86_64 executable"
tee /dev/stderr | grep -q "Mach-O 64-bit arm64 executable"
- test_aarch64-macos-gnu: | - test_aarch64-macos-gnu: |
cd bazel-zig-cc; ../bazel build \ cd bazel-zig-cc; ../bazel build \
--platforms @zig_sdk//:aarch64-macos-gnu \ --platforms @zig_sdk//:aarch64-macos-gnu //test:gognu
//test:gomacos file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:gognu) | \
file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:gomacos) | \ tee /dev/stderr | grep -q "Mach-O 64-bit arm64 executable"
tee /dev/stderr | grep -q "Mach-O 64-bit x86_64 executable"

View File

@ -11,19 +11,10 @@ go_library(
go_binary( go_binary(
name = "gognu", name = "gognu",
embed = [":go_lib"], embed = [":go_lib"],
target_compatible_with = ["@platforms//os:linux"], gc_linkopts = select({
visibility = ["//visibility:public"], "@platforms//os:macos": ["-s", "-w", "-buildmode=pie"],
) "//conditions:default": [],
}),
go_binary(
name = "gomacos",
embed = [":go_lib"],
gc_linkopts = [
"-s",
"-w",
"-buildmode=pie",
],
target_compatible_with = ["@platforms//os:macos"],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )