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"
|
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"
|
|
||||||
|
17
test/BUILD
17
test/BUILD
@ -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"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user