Remove blaze only copts (#91)
`-Xclang-only=` and `-Xgcc-only=` are blaze build_defs specific options
Co-authored-by: Mizux Seiha <mizux.dev@gmail.com>
diff --git a/pybind11-BUILD.bazel b/pybind11-BUILD.bazel
index 12d45f4..a9b7c02 100644
--- a/pybind11-BUILD.bazel
+++ b/pybind11-BUILD.bazel
@@ -18,12 +18,7 @@
),
copts = select({
":msvc_compiler": [],
- "//conditions:default": [
- "-fexceptions",
- # Useless warnings
- "-Xclang-only=-Wno-pragma-once-outside-header",
- "-Xgcc-only=-Wno-error", # no way to just disable the pragma-once warning in gcc
- ],
+ "//conditions:default": ["-fexceptions"],
}),
includes = ["include"],
visibility = ["//visibility:public"],