Skip to content

Commit 530cba9

Browse files
keithMizux
andauthored
Remove blaze only copts (#91)
`-Xclang-only=` and `-Xgcc-only=` are blaze build_defs specific options Co-authored-by: Mizux Seiha <[email protected]>
1 parent 304b1d8 commit 530cba9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pybind11-BUILD.bazel

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ cc_library(
1818
),
1919
copts = select({
2020
":msvc_compiler": [],
21-
"//conditions:default": [
22-
"-fexceptions",
23-
# Useless warnings
24-
"-Xclang-only=-Wno-pragma-once-outside-header",
25-
"-Xgcc-only=-Wno-error", # no way to just disable the pragma-once warning in gcc
26-
],
21+
"//conditions:default": ["-fexceptions"],
2722
}),
2823
includes = ["include"],
2924
visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)