Skip to content

Commit

Permalink
fix(cxx_verifier): properly attribute srcs/hdrs to avoid ODR (#4821)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahms committed Feb 5, 2021
1 parent b7025ca commit b802f32
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions kythe/cxx/verifier/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ cc_library(
hdrs = [
"assertion_ast.h",
"assertions.h",
"pretty_printer.h",
":parser",
],
copts = [
Expand All @@ -43,6 +42,7 @@ cc_library(
"-Wno-implicit-fallthrough",
],
deps = [
":pretty_printer",
"@com_github_google_glog//:glog",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
Expand Down Expand Up @@ -81,14 +81,11 @@ cc_test(

cc_library(
name = "ast",
srcs = [
"pretty_printer.cc",
],
hdrs = [
"assertion_ast.h",
"pretty_printer.h",
],
deps = [
":pretty_printer",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
],
Expand Down Expand Up @@ -121,12 +118,10 @@ cc_library(
srcs = [
"assertions.cc",
"parser.yy.hh",
"pretty_printer.cc",
"verifier.cc",
],
hdrs = [
"assertions.h",
"pretty_printer.h",
"verifier.h",
],
copts = [
Expand All @@ -137,6 +132,7 @@ cc_library(
deps = [
":ast",
":lexparse",
":pretty_printer",
"//kythe/cxx/common:file_utils",
"//kythe/cxx/common:kythe_uri",
"//kythe/cxx/common:scope_guard",
Expand Down Expand Up @@ -197,3 +193,12 @@ cc_test(
"@com_google_protobuf//:protobuf",
],
)

cc_library(
name = "pretty_printer",
srcs = ["pretty_printer.cc"],
hdrs = ["pretty_printer.h"],
deps = [
"@com_google_absl//absl/strings:str_format",
],
)

0 comments on commit b802f32

Please sign in to comment.