Skip to content

Commit 037ad5d

Browse files
committed
Remove unused pybind copts
Since this target has no srcs these are unused
1 parent a29d777 commit 037ad5d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pybind11-BUILD.bazel

-16
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,7 @@ cc_library(
1616
"include/pybind11/common.h",
1717
],
1818
),
19-
copts = select({
20-
":msvc_compiler": [],
21-
"//conditions:default": [
22-
"-fexceptions",
23-
# Useless warnings
24-
"-Xclang-only=-Wno-undefined-inline",
25-
"-Xclang-only=-Wno-pragma-once-outside-header",
26-
"-Xgcc-only=-Wno-error", # no way to just disable the pragma-once warning in gcc
27-
],
28-
}),
2919
includes = ["include"],
3020
visibility = ["//visibility:public"],
3121
deps = ["@rules_python//python/cc:current_py_cc_headers"],
3222
)
33-
34-
config_setting(
35-
name = "msvc_compiler",
36-
flag_values = {"@bazel_tools//tools/cpp:compiler": "msvc-cl"},
37-
visibility = ["//visibility:public"],
38-
)

0 commit comments

Comments
 (0)