1

added Windows target testing

This commit is contained in:
Fabian Hahn
2022-05-29 17:35:18 +01:00
committed by Motiejus Jakštys
parent 72475ee012
commit 6f2ae838cd
6 changed files with 63 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
load("@bazel-zig-cc//rules:platform.bzl", "platform_binary")
load("@bazel-zig-cc//rules:platform.bzl", "platform_binary", "platform_test")
cc_binary(
name = "which_libc",
@@ -34,3 +34,25 @@ cc_binary(
("linux_arm64", "//platform:linux_arm64", "glibc_2.28"),
]
]
cc_binary(
name = "winver",
srcs = ["main_winver.c"],
target_compatible_with = [
"@platforms//os:windows",
],
)
platform_test(
name = "winver_windows_amd64",
src = "winver",
platform = "//platform:windows_amd64",
tags = ["manual"],
)
platform_binary(
name = "winver_windows_arm64",
src = "winver",
platform = "//platform:windows_arm64",
tags = ["manual"],
)