Skip to content

Commit 88bfc9f

Browse files
authored
Merge pull request #8395 from hzeller/feature-20250922-duplicate-header
Don't export the same header by multiple libraries.
2 parents 22dd3db + 1e9a78c commit 88bfc9f

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/cts/BUILD

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],
@@ -16,11 +16,9 @@ cc_library(
1616
"src/Clock.h",
1717
"src/Clustering.h",
1818
"src/CtsObserver.h",
19-
"src/CtsOptions.h",
2019
"src/HTreeBuilder.h",
2120
"src/LevelBalancer.h",
2221
"src/SinkClustering.h",
23-
"src/TechChar.h",
2422
"src/TreeBuilder.h",
2523
"src/Util.h",
2624
],
@@ -51,7 +49,10 @@ cc_library(
5149
"src/CtsOptions.h",
5250
"src/TechChar.h",
5351
],
54-
includes = ["include", "src"],
52+
includes = [
53+
"include",
54+
"src",
55+
],
5556
deps = [
5657
":private_hdrs",
5758
"//src/dbSta",
@@ -136,4 +137,4 @@ python_wrap_cc(
136137
swig_includes = [
137138
"include",
138139
],
139-
)
140+
)

src/odb/BUILD

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ cc_library(
4343
"src/lefout/*.cpp",
4444
"src/swig/common/swig_common.cpp",
4545
]),
46-
hdrs = glob([
47-
"include/odb/*.h",
48-
"include/odb/*.hpp",
49-
]) + ["src/swig/common/swig_common.h"],
46+
hdrs = glob(
47+
include = [
48+
"include/odb/*.h",
49+
"include/odb/*.hpp",
50+
],
51+
exclude = ["include/odb/MakeOdb.h"],
52+
) + ["src/swig/common/swig_common.h"],
5053
features = [
5154
"-use_header_modules",
5255
],
@@ -116,10 +119,7 @@ cc_library(
116119
":swig",
117120
":tcl",
118121
],
119-
hdrs = glob([
120-
"include/odb/*.h",
121-
"include/odb/*.hpp",
122-
]),
122+
hdrs = ["include/odb/MakeOdb.h"],
123123
copts = [
124124
"-Wno-missing-braces", # from TCL swigging
125125
"-Isrc/odb/src/swig/common",

0 commit comments

Comments
 (0)