Skip to content

Commit 89e81a2

Browse files
committed
Merge branch 'master' into mpl-new-blockages
2 parents 84caee9 + 7253bd5 commit 89e81a2

File tree

369 files changed

+2336
-2168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+2336
-2168
lines changed

.buildifier.json

Lines changed: 1 addition & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -2,103 +2,5 @@
22
"type": "auto",
33
"mode": "fix",
44
"lint": "fix",
5-
"warningsList": [
6-
"attr-applicable_licenses",
7-
"attr-cfg",
8-
"attr-license",
9-
"attr-licenses",
10-
"attr-non-empty",
11-
"attr-output-default",
12-
"attr-single-file",
13-
"build-args-kwargs",
14-
"bzl-visibility",
15-
"confusing-name",
16-
"constant-glob",
17-
"ctx-actions",
18-
"ctx-args",
19-
"deprecated-function",
20-
"depset-items",
21-
"depset-iteration",
22-
"depset-union",
23-
"dict-concatenation",
24-
"dict-method-named-arg",
25-
"duplicated-name",
26-
"filetype",
27-
"function-docstring",
28-
"function-docstring-args",
29-
"function-docstring-header",
30-
"function-docstring-return",
31-
"git-repository",
32-
"http-archive",
33-
"integer-division",
34-
"keyword-positional-params",
35-
"list-append",
36-
"load",
37-
"module-docstring",
38-
"name-conventions",
39-
"native-android",
40-
"native-build",
41-
"native-cc-binary",
42-
"native-cc-common",
43-
"native-cc-debug-package-info",
44-
"native-cc-fdo-prefetch-hints",
45-
"native-cc-fdo-profile",
46-
"native-cc-import",
47-
"native-cc-info",
48-
"native-cc-library",
49-
"native-cc-memprof-profile",
50-
"native-cc-objc-import",
51-
"native-cc-objc-library",
52-
"native-cc-propeller-optimize",
53-
"native-cc-proto",
54-
"native-cc-shared-library",
55-
"native-cc-shared-library-hint-info",
56-
"native-cc-shared-library-info",
57-
"native-cc-test",
58-
"native-cc-toolchain",
59-
"native-cc-toolchain-suite",
60-
"native-java-binary",
61-
"native-java-common",
62-
"native-java-import",
63-
"native-java-info",
64-
"native-java-library",
65-
"native-java-lite-proto",
66-
"native-java-package-config",
67-
"native-java-plugin",
68-
"native-java-plugin-info",
69-
"native-java-proto",
70-
"native-java-runtime",
71-
"native-java-test",
72-
"native-java-toolchain",
73-
"native-package",
74-
"native-proto",
75-
"native-proto-common",
76-
"native-proto-info",
77-
"native-proto-lang-toolchain",
78-
"native-proto-lang-toolchain-info",
79-
"native-py",
80-
"native-sh-binary",
81-
"native-sh-library",
82-
"native-sh-test",
83-
"no-effect",
84-
"output-group",
85-
"overly-nested-depset",
86-
"package-name",
87-
"package-on-top",
88-
"positional-args",
89-
"print",
90-
"provider-params",
91-
"redefined-variable",
92-
"repository-name",
93-
"return-value",
94-
"rule-impl-return",
95-
"skylark-comment",
96-
"skylark-docstring",
97-
"string-iteration",
98-
"uninitialized",
99-
"unnamed-macro",
100-
"unreachable",
101-
"unsorted-dict-items",
102-
"unused-variable"
103-
]
5+
"warnings": "all"
1046
}

.github/workflows/bazel-format-lint.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/buildifier.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Lint Bazel
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
buildifier:
13+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
check:
18+
- name: Buildifier format
19+
run: ./buildifier -r -mode=check -lint=off .
20+
- name: Buildifier lint
21+
run: ./buildifier -r -lint=warn .
22+
name: ${{ matrix.check.name }}
23+
env:
24+
BUILDIFIER_VERSION: v8.2.1
25+
26+
steps:
27+
- name: Checkout Code
28+
uses: actions/checkout@v5
29+
30+
- name: Cache buildifier
31+
id: cache-buildifier
32+
uses: actions/cache@v4
33+
with:
34+
path: ./buildifier
35+
key: ${{ runner.os }}-buildifier-${{ env.BUILDIFIER_VERSION }}
36+
37+
- name: Download buildifier
38+
if: steps.cache-buildifier.outputs.cache-hit != 'true'
39+
run: |
40+
wget https://github.com/bazelbuild/buildtools/releases/download/${BUILDIFIER_VERSION}/buildifier-linux-amd64 -O buildifier
41+
chmod +x buildifier
42+
43+
- name: ${{ matrix.check.name }}
44+
run: ${{ matrix.check.run }}

BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Copyright (c) 2025-2025, The OpenROAD Authors
33

44
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
5+
load("@openroad_rules_python//python:defs.bzl", "py_library")
6+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
7+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
58
load("//bazel:python_wrap_cc.bzl", "PYTHON_STABLE_API_DEFINE", "python_wrap_cc")
69
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
710
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
@@ -104,8 +107,8 @@ OPENROAD_LIBRARY_DEPS = [
104107
"@edu_berkeley_abc//:abc-lib",
105108
] + select(
106109
{
107-
":platform_gui": ["//src/gui:gui_qt"],
108110
":platform_cli": ["//src/gui"],
111+
":platform_gui": ["//src/gui:gui_qt"],
109112
},
110113
)
111114

@@ -161,8 +164,8 @@ cc_binary(
161164

162165
GUI_BUILD_FLAGS = select(
163166
{
164-
":platform_gui": ["BUILD_GUI=true"],
165167
":platform_cli": ["BUILD_GUI=false"],
168+
":platform_gui": ["BUILD_GUI=true"],
166169
},
167170
)
168171

MODULE.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ use_repo(orfs, "docker_orfs")
173173

174174
SCALA_VERSION = "2.13.16"
175175

176-
SCALA_VERSION_SHORT = SCALA_VERSION.rpartition(".")[0]
177-
178176
scala_config = use_extension(
179177
"@rules_scala//scala/extensions:config.bzl",
180178
"scala_config",

bazel/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@openroad_rules_python//python:pip.bzl", "compile_pip_requirements")
2+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
23

34
compile_pip_requirements(
45
name = "requirements",

bazel/tcl_encode_or.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ tcl_encode = rule(
4343
doc = "The name of the extern string array value in the generated file.",
4444
mandatory = True,
4545
),
46-
"out": attr.string(
47-
doc = "The name of the C++ source file generated by these rules.",
48-
),
4946
"namespace": attr.string(
5047
doc = "The namespace in the C++ source file generated.",
5148
mandatory = True,
5249
),
50+
"out": attr.string(
51+
doc = "The name of the C++ source file generated by these rules.",
52+
),
5353
"srcs": attr.label_list(
5454
allow_empty = False,
5555
allow_files = [".tcl", ".py"],

bazel/tcl_wrap_cc.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ tcl_wrap_cc = rule(
136136
The root file must be explicitly provided. This is the file which will be passed to
137137
swig for generation.""",
138138
),
139+
"runtime_header": attr.string(),
139140
"srcs": attr.label_list(
140141
allow_empty = False,
141142
allow_files = [".i", ".swig", ".h", ".hpp", ".hh"],
@@ -147,7 +148,6 @@ tcl_wrap_cc = rule(
147148
"swig_options": attr.string_list(
148149
doc = "args to pass directly to the swig binary",
149150
),
150-
"runtime_header": attr.string(),
151151
"_swig": attr.label(
152152
default = "@org_swig//:swig_stable",
153153
allow_files = True,

etc/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@openroad_rules_python//python:defs.bzl", "py_binary")
2+
13
py_binary(
24
name = "file_to_string",
35
srcs = [

openroad/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@openroad_rules_python//python:defs.bzl", "py_library")
2+
13
# SPDX-License-Identifier: BSD-3-Clause
24
# Copyright (c) 2025-2025, The OpenROAD Authors
35
load("@openroad_rules_python//python:packaging.bzl", "py_package", "py_wheel")

0 commit comments

Comments
 (0)