diff --git a/flow/BUILD b/flow/BUILD index 9b6aeb9b64..fbbf833b28 100644 --- a/flow/BUILD +++ b/flow/BUILD @@ -178,4 +178,17 @@ filegroup( "nangate45", "sky130hd", "sky130hs", -]] +] + +# Shared linter targets from tools/OpenROAD +alias( + name = "fix_lint", + actual = "//tools/OpenROAD:fix_lint", + visibility = ["//visibility:public"], +) + +alias( + name = "lint_test", + actual = "//tools/OpenROAD:lint_test", + visibility = ["//visibility:public"], +) diff --git a/patches/openroad/0001-Expose-fix_lint-and-lint_test-targets.patch b/patches/openroad/0001-Expose-fix_lint-and-lint_test-targets.patch new file mode 100644 index 0000000000..fc2e933934 --- /dev/null +++ b/patches/openroad/0001-Expose-fix_lint-and-lint_test-targets.patch @@ -0,0 +1,18 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index 971fb4ec7e..be42fbcb3a 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -651,6 +651,7 @@ test_suite( + ":lint_bzl_test", + ":lint_tcl_test", + ], ++ visibility = ["//visibility:public"], + ) + + # Linting is done here (not just formatting) because not all lint violations +@@ -682,4 +683,5 @@ sh_binary( + "@buildifier_prebuilt//:buildifier", + "@git", + ], ++ visibility = ["//visibility:public"], + )