Skip to content

Commit 3b11696

Browse files
committed
build(bazel): use platform to detect windows
1 parent 229a501 commit 3b11696

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

BUILD.bazel

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
11
package(default_visibility = ["//visibility:public"])
2-
3-
config_setting(
4-
name = "windows",
5-
values = {"cpu": "x64_windows"},
6-
)
7-
8-
config_setting(
9-
name = "windows_msvc",
10-
values = {"cpu": "x64_windows_msvc"},
11-
)

push/BUILD.bazel

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ cc_library(
1616
["include/**/*.h"],
1717
) + [":export_header"],
1818
linkopts = select({
19-
"//:windows": [],
20-
"//:windows_msvc": [],
19+
"@platforms//os:windows": [],
2120
"//conditions:default": ["-lpthread"],
2221
}),
2322
strip_include_prefix = "include",

0 commit comments

Comments
 (0)