remove redundant target
This commit is contained in:
parent
f824f4ac8e
commit
18b43049c1
14
.build.yml
14
.build.yml
@ -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"
|
||||
|
17
test/BUILD
17
test/BUILD
@ -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"],
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user