Skip to content

Commit

Permalink
Remove unused pybind copts
Browse files Browse the repository at this point in the history
Since this target has no srcs these are unused
  • Loading branch information
keith committed Jun 29, 2024
1 parent a29d777 commit 037ad5d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pybind11-BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,7 @@ cc_library(
"include/pybind11/common.h",
],
),
copts = select({
":msvc_compiler": [],
"//conditions:default": [
"-fexceptions",
# Useless warnings
"-Xclang-only=-Wno-undefined-inline",
"-Xclang-only=-Wno-pragma-once-outside-header",
"-Xgcc-only=-Wno-error", # no way to just disable the pragma-once warning in gcc
],
}),
includes = ["include"],
visibility = ["//visibility:public"],
deps = ["@rules_python//python/cc:current_py_cc_headers"],
)

config_setting(
name = "msvc_compiler",
flag_values = {"@bazel_tools//tools/cpp:compiler": "msvc-cl"},
visibility = ["//visibility:public"],
)

0 comments on commit 037ad5d

Please sign in to comment.