@@ -143,6 +143,7 @@ OPENROAD_COPTS = [
143143
144144OPENROAD_DEFINES = [
145145 "BUILD_TYPE=\\ \" $(COMPILATION_MODE)\\ \" " ,
146+ "BAZEL_BUILD" ,
146147 "GPU=false" ,
147148 "BUILD_PYTHON=false" ,
148149 "ABC_NAMESPACE=abc" ,
@@ -178,7 +179,6 @@ cc_library(
178179# headers to consumers, so direct binary deps are what each Main.cc
179180# include needs to see.
180181OPENROAD_MAIN_DEPS = [
181- ":openroad_version" ,
182182 ":ord" ,
183183 ":tcl_readline_setup" ,
184184 "//bazel:tcl_library_init" ,
@@ -187,9 +187,7 @@ OPENROAD_MAIN_DEPS = [
187187 "//src/utl" ,
188188 "//src/web" ,
189189 "@abseil-cpp//absl/base:no_destructor" ,
190- "@boost.dll" ,
191190 "@boost.stacktrace" ,
192- "@rules_cc//cc/runfiles" , # sets BAZEL_CURRENT_REPOSITORY
193191 "@tcl_lang//:tcl" ,
194192]
195193
@@ -550,10 +548,14 @@ build_test(
550548sh_test (
551549 name = "lint_tcl_test" ,
552550 srcs = ["//bazel:tcl_lint_test.sh" ],
553- args = ["$(rootpath //bazel:tclint)" ],
551+ args = [
552+ "$(rootpath //bazel:tclint)" ,
553+ "$(rootpath @git)" ,
554+ ],
554555 data = [
555556 "tclint.toml" ,
556557 "//bazel:tclint" ,
558+ "@git" ,
557559 ],
558560 tags = ["local" ],
559561)
@@ -564,10 +566,14 @@ sh_test(
564566sh_test (
565567 name = "fmt_tcl_test" ,
566568 srcs = ["//bazel:tcl_fmt_test.sh" ],
567- args = ["$(rootpath //bazel:tclfmt)" ],
569+ args = [
570+ "$(rootpath //bazel:tclfmt)" ,
571+ "$(rootpath @git)" ,
572+ ],
568573 data = [
569574 "tclint.toml" ,
570575 "//bazel:tclfmt" ,
576+ "@git" ,
571577 ],
572578 tags = ["local" ],
573579)
@@ -591,10 +597,14 @@ sh_binary(
591597sh_test (
592598 name = "lint_bzl_test" ,
593599 srcs = ["//bazel:bzl_lint_test.sh" ],
594- args = ["$(rootpath @buildifier_prebuilt//:buildifier)" ],
600+ args = [
601+ "$(rootpath @buildifier_prebuilt//:buildifier)" ,
602+ "$(rootpath @git)" ,
603+ ],
595604 data = [
596605 "MODULE.bazel" ,
597606 "@buildifier_prebuilt//:buildifier" ,
607+ "@git" ,
598608 ],
599609 tags = ["local" ],
600610)
@@ -605,10 +615,14 @@ sh_test(
605615sh_test (
606616 name = "fmt_bzl_test" ,
607617 srcs = ["//bazel:bzl_fmt_test.sh" ],
608- args = ["$(rootpath @buildifier_prebuilt//:buildifier)" ],
618+ args = [
619+ "$(rootpath @buildifier_prebuilt//:buildifier)" ,
620+ "$(rootpath @git)" ,
621+ ],
609622 data = [
610623 "MODULE.bazel" ,
611624 "@buildifier_prebuilt//:buildifier" ,
625+ "@git" ,
612626 ],
613627 tags = ["local" ],
614628)
0 commit comments