From 4d859dd979801b8b5c0274eb08d57780da26501c Mon Sep 17 00:00:00 2001 From: Eric Cousineau Date: Sun, 8 Apr 2018 11:54:10 -0400 Subject: [PATCH] pybind: Move clang-specific options to `clang_opts` (Resolves #8437) --- tools/skylark/pybind.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/skylark/pybind.bzl b/tools/skylark/pybind.bzl index 589c31dd2a95..c22eedd057d8 100644 --- a/tools/skylark/pybind.bzl +++ b/tools/skylark/pybind.bzl @@ -40,10 +40,13 @@ def _drake_pybind_cc_binary( srcs = srcs + ["//tools/install/libdrake:libdrake.so"], # These copts are per pybind11 deficiencies. copts = [ + "-Wno-cpp", + ] + copts, + clang_copts = [ "-Wno-#warnings", "-Wno-cpp", "-Wno-unknown-warning-option", - ] + copts, + ], # This is how you tell Bazel to create a shared library. linkshared = 1, linkstatic = 1,