Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Fix build options for non transitive load.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmel committed May 7, 2019
1 parent 7c3607b commit 89232a1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions opencensus/copts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ We use the same flags as absl, plus turn some warnings into errors.

load(
"@com_google_absl//absl:copts/configure_copts.bzl",
"ABSL_GCC_FLAGS",
"ABSL_GCC_TEST_FLAGS",
"ABSL_LLVM_FLAGS",
"ABSL_LLVM_TEST_FLAGS",
"ABSL_MSVC_FLAGS",
"ABSL_MSVC_TEST_FLAGS",
_ABSL_GCC_FLAGS = "ABSL_GCC_FLAGS",
_ABSL_GCC_TEST_FLAGS = "ABSL_GCC_TEST_FLAGS",
_ABSL_LLVM_FLAGS = "ABSL_LLVM_FLAGS",
_ABSL_LLVM_TEST_FLAGS = "ABSL_LLVM_TEST_FLAGS",
_ABSL_MSVC_FLAGS = "ABSL_MSVC_FLAGS",
_ABSL_MSVC_TEST_FLAGS = "ABSL_MSVC_TEST_FLAGS",
)

ABSL_GCC_FLAGS = _ABSL_GCC_FLAGS
ABSL_GCC_TEST_FLAGS = _ABSL_GCC_TEST_FLAGS
ABSL_LLVM_FLAGS = _ABSL_LLVM_FLAGS
ABSL_LLVM_TEST_FLAGS = _ABSL_LLVM_TEST_FLAGS
ABSL_MSVC_FLAGS = _ABSL_MSVC_FLAGS
ABSL_MSVC_TEST_FLAGS = _ABSL_MSVC_TEST_FLAGS

WERROR = ["-Werror=return-type", "-Werror=switch"]

DEFAULT_COPTS = select({
Expand Down

0 comments on commit 89232a1

Please sign in to comment.