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

Commit 1f12445

Browse files
jinmelBogdan Drutu
authored andcommitted
Fix absl cops flag names. (#307)
1 parent 135850f commit 1f12445

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

opencensus/copts.bzl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ We use the same flags as absl, plus turn some warnings into errors.
2323

2424
load(
2525
"@com_google_absl//absl:copts/configure_copts.bzl",
26-
"GCC_FLAGS",
27-
"GCC_TEST_FLAGS",
28-
"LLVM_FLAGS",
29-
"LLVM_TEST_FLAGS",
30-
"MSVC_FLAGS",
31-
"MSVC_TEST_FLAGS",
26+
"ABSL_GCC_FLAGS",
27+
"ABSL_GCC_TEST_FLAGS",
28+
"ABSL_LLVM_FLAGS",
29+
"ABSL_LLVM_TEST_FLAGS",
30+
"ABSL_MSVC_FLAGS",
31+
"ABSL_MSVC_TEST_FLAGS",
3232
)
3333

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

3636
DEFAULT_COPTS = select({
37-
"//opencensus:llvm_compiler": LLVM_FLAGS + WERROR,
38-
"//opencensus:windows": MSVC_FLAGS,
39-
"//conditions:default": GCC_FLAGS + WERROR,
37+
"//opencensus:llvm_compiler": ABSL_LLVM_FLAGS + WERROR,
38+
"//opencensus:windows": ABSL_MSVC_FLAGS,
39+
"//conditions:default": ABSL_GCC_FLAGS + WERROR,
4040
})
4141

4242
TEST_COPTS = DEFAULT_COPTS + select({
43-
"//opencensus:llvm_compiler": LLVM_TEST_FLAGS + WERROR,
44-
"//opencensus:windows": MSVC_TEST_FLAGS,
45-
"//conditions:default": GCC_TEST_FLAGS + WERROR,
43+
"//opencensus:llvm_compiler": ABSL_LLVM_TEST_FLAGS + WERROR,
44+
"//opencensus:windows": ABSL_MSVC_TEST_FLAGS,
45+
"//conditions:default": ABSL_GCC_TEST_FLAGS + WERROR,
4646
})

0 commit comments

Comments
 (0)