Skip to content

Commit 5d0d0fb

Browse files
authored
Merge pull request #8079 from The-OpenROAD-Project-staging/bzl-layer-check
ord: enable layering_check in BUILD.bazel
2 parents 05f2e3f + 47b283e commit 5d0d0fb

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

BUILD.bazel

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
88
package(
99
features = [
1010
"-parse_headers",
11-
"-layering_check",
11+
"layering_check",
1212
# TODO(b/299593765): Fix strict ordering.
1313
"-libcxx_assertions",
1414
],
@@ -131,22 +131,20 @@ cc_binary(
131131
name = "openroad",
132132
srcs = [
133133
"src/Main.cc",
134-
"src/OpenRoad.cc",
135-
":openroad_swig",
136-
":openroad_tcl",
137134
"//bazel:runfiles",
138135
],
139136
copts = OPENROAD_COPTS,
140137
features = ["-use_header_modules"],
141138
malloc = "@tcmalloc//tcmalloc",
142139
visibility = ["//visibility:public"],
143140
deps = [
144-
":openroad_lib_private",
141+
":openroad_lib",
145142
":openroad_version",
146-
"//src/odb",
147-
"//src/rsz",
143+
"//:ord",
144+
"//src/gui",
148145
"//src/sta:opensta_lib",
149146
"//src/utl",
147+
"@boost.stacktrace",
150148
"@rules_cc//cc/runfiles",
151149
"@tk_tcl//:tcl",
152150
],
@@ -172,7 +170,10 @@ cc_library(
172170
includes = [
173171
"include",
174172
],
175-
deps = OPENROAD_LIBRARY_DEPS,
173+
deps = OPENROAD_LIBRARY_DEPS + [
174+
"//src/sta:opensta_lib",
175+
"@tk_tcl//:tcl",
176+
]
176177
)
177178

178179
cc_library(
@@ -192,7 +193,11 @@ cc_library(
192193
"include",
193194
],
194195
visibility = ["//visibility:public"],
195-
deps = OPENROAD_LIBRARY_DEPS,
196+
deps = OPENROAD_LIBRARY_DEPS + [
197+
"//src/sta:opensta_lib",
198+
"@boost.stacktrace",
199+
"@tk_tcl//:tcl",
200+
]
196201
)
197202

198203
cc_library(

0 commit comments

Comments
 (0)