From 037ad5dafc4bef3fa4664405af13ad9231a57e4b Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 28 Jun 2024 17:46:12 -0700 Subject: [PATCH] Remove unused pybind copts Since this target has no srcs these are unused --- pybind11-BUILD.bazel | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pybind11-BUILD.bazel b/pybind11-BUILD.bazel index 5908ce1..157c716 100644 --- a/pybind11-BUILD.bazel +++ b/pybind11-BUILD.bazel @@ -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"], -)