Skip to content

Commit 8878df0

Browse files
committed
Merge remote-tracking branch 'private/master' into gpl-fix-debug
2 parents 1658d99 + 7d118f7 commit 8878df0

File tree

350 files changed

+85442
-105797
lines changed

Some content is hidden

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

350 files changed

+85442
-105797
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ common --incompatible_disallow_empty_glob
1414

1515
build --cxxopt "-std=c++17" --host_cxxopt "-std=c++17"
1616
build --cxxopt "-xc++" --host_cxxopt "-xc++"
17+
build --cxxopt "-DBAZEL_BUILD" --host_cxxopt "-DBAZEL_BUILD"
1718

1819
# Needed for floating point stability in FFT (fft_test will check this).
1920
# See also https://kristerw.github.io/2021/11/09/fp-contract/

.github/workflows/github-actions-clang-tidy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: The-OpenROAD-Project/clang-tidy-review@master
1818
id: review
1919
with:
20+
clang_tidy_version: 15
2021
build_dir: "./build"
2122
cmake_command: cmake . -B build
2223
config_file: ".clang-tidy"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ bazel-OpenROAD
6565
projectview.bazelproject
6666
.bsp/
6767
.bazelbsp/
68+
/buildifier

Jenkinsfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,20 @@ def bazelTest = {
221221
stage('bazelisk test ...') {
222222
withCredentials([string(credentialsId: 'bazel-auth-token-b64', variable: 'BAZEL_AUTH_TOKEN_B64')]) {
223223
timeout(time: 120, unit: 'MINUTES') {
224-
def cmd = 'bazelisk test --config=ci --show_timestamps --test_output=errors --curses=no --force_pic --remote_header="Authorization=Basic $BAZEL_AUTH_TOKEN_B64"'
224+
def cmd = 'bazelisk test --config=ci --show_timestamps --test_output=errors --curses=no --force_pic --remote_header="Authorization=Basic $BAZEL_AUTH_TOKEN_B64" --profile=build.profile'
225225
try {
226-
sh label: 'Bazel Build', script: cmd + ' ...';
226+
try {
227+
sh label: 'Test, using cached results and building a minimum of dependencies', script: cmd + ' ...';
228+
} finally {
229+
sh label: 'Analyze build times', script: 'bazelisk analyze-profile build.profile';
230+
}
227231
} catch (e) {
228232
currentBuild.result = 'FAILURE';
229-
sh label: 'Bazel Build (keep_going)', script: cmd + ' --keep_going ...';
233+
try {
234+
sh label: 'Test (keep_going)', script: cmd + ' --keep_going ...';
235+
} finally {
236+
sh label: 'Analyze build times', script: 'bazelisk analyze-profile build.profile';
237+
}
230238
}
231239
}
232240
}

MODULE.bazel

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ bazel_dep(name = "boost.smart_ptr", version = BOOST_VERSION)
7979
bazel_dep(name = "boost.spirit", version = BOOST_VERSION)
8080
bazel_dep(name = "boost.stacktrace", version = BOOST_VERSION)
8181
bazel_dep(name = "boost.system", version = BOOST_VERSION)
82-
bazel_dep(name = "boost.test", version = BOOST_VERSION + ".bcr.1")
8382
bazel_dep(name = "boost.thread", version = BOOST_VERSION + ".bcr.2")
8483
bazel_dep(name = "boost.tokenizer", version = BOOST_VERSION)
8584
bazel_dep(name = "boost.unordered", version = BOOST_VERSION)
@@ -104,7 +103,7 @@ git_override(
104103
remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts",
105104
)
106105

107-
bazel_dep(name = "googletest", version = "1.16.0", dev_dependency = True)
106+
bazel_dep(name = "googletest", version = "1.17.0", dev_dependency = True)
108107

109108
# Dependencies needed by one of the rules_hdl repos. Once they are on
110109
# BCR, they should depend on their own version.
@@ -154,7 +153,7 @@ bazel_dep(name = "bazel-orfs")
154153
# To bump version, run: bazelisk run @bazel-orfs//:bump
155154
git_override(
156155
module_name = "bazel-orfs",
157-
commit = "da01065203fbcc043c82318b544fbe111053b9d0",
156+
commit = "2aa6a9dd3c0006c5358e363fcac9e209c4dccc47",
158157
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
159158
)
160159

@@ -163,10 +162,10 @@ orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
163162
# To bump version, run: bazelisk run @bazel-orfs//:bump
164163
orfs.default(
165164
# Official image https://hub.docker.com/r/openroad/orfs/tags
166-
image = "docker.io/openroad/orfs:v3.0-3872-g66e441c6c",
165+
image = "docker.io/openroad/orfs:v3.0-3911-g99312fa58",
167166
# Use OpenROAD of this repo instead of from the docker image
168167
openroad = "//:openroad",
169-
sha256 = "f75321f10023a8bf99b1ed5dfe1dab6351f588eda24f186a66e9145fd9b76fd1",
168+
sha256 = "36d3ac23732803c9e47181e167a105c69d4d6927a96782c4a4a27ceca40d8ff8",
170169
)
171170
use_repo(orfs, "com_github_nixos_patchelf_download")
172171
use_repo(orfs, "docker_orfs")

MODULE.bazel.lock

Lines changed: 19 additions & 10765 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ save_flow_metrics_limits <TEST_NAME>
329329

330330
``` text
331331
openroad [-help] [-version] [-no_init] [-exit] [-gui]
332-
[-threads count|max] [-log file_name] cmd_file
332+
[-threads count|max] [-log file_name] [-db file_name] cmd_file
333333
-help show help and exit
334334
-version show version and exit
335335
-no_init do not read .openroad init file
@@ -339,6 +339,7 @@ openroad [-help] [-version] [-no_init] [-exit] [-gui]
339339
-gui start in gui mode
340340
-python start with python interpreter [limited to db operations]
341341
-log <file_name> write a log in <file_name>
342+
-db <file_name> open a .odb database at startup
342343
cmd_file source cmd_file
343344
```
344345

bazel/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
load("@openroad_rules_python//python:pip.bzl", "compile_pip_requirements")
22
load("@rules_cc//cc:cc_library.bzl", "cc_library")
33

4+
package(features = ["layering_check"])
5+
46
compile_pip_requirements(
57
name = "requirements",
68
src = "requirements.in",

bazel/openmp/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package(
1616
default_visibility = ["//visibility:private"],
17+
features = ["layering_check"],
1718
)
1819

1920
exports_files(

bazel/openmp/bundled.BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ cc_library(
8686
"runtime/src/ompt-general.cpp",
8787
"runtime/src/ompt-internal.h",
8888
"runtime/src/ompt-specific.h",
89-
"runtime/src/test-touch.c",
9089
"runtime/src/z_Linux_asm.S",
9190
"runtime/src/z_Linux_util.cpp",
9291
] + [

0 commit comments

Comments
 (0)