Skip to content

Commit 33dd5ff

Browse files
committed
merge master
Signed-off-by: LucasYuki <[email protected]>
2 parents 4f31b8e + 0bfe867 commit 33dd5ff

File tree

1,137 files changed

+19745
-8129
lines changed

Some content is hidden

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

1,137 files changed

+19745
-8129
lines changed

BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ cc_library(
173173
deps = OPENROAD_LIBRARY_DEPS + [
174174
"//src/sta:opensta_lib",
175175
"@tk_tcl//:tcl",
176-
]
176+
],
177177
)
178178

179179
cc_library(
@@ -197,7 +197,7 @@ cc_library(
197197
"//src/sta:opensta_lib",
198198
"@boost.stacktrace",
199199
"@tk_tcl//:tcl",
200-
]
200+
],
201201
)
202202

203203
cc_library(

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bazel_dep(name = "bazel-orfs")
152152
# To bump version, run: bazelisk run @bazel-orfs//:bump
153153
git_override(
154154
module_name = "bazel-orfs",
155-
commit = "abacf584d7515bebec96491c757a806431b7f9f7",
155+
commit = "a94bc4e8e7973750cf818a220fcb2c1e23042469",
156156
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
157157
)
158158

@@ -161,10 +161,10 @@ orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
161161
# To bump version, run: bazelisk run @bazel-orfs//:bump
162162
orfs.default(
163163
# Official image https://hub.docker.com/r/openroad/orfs/tags
164-
image = "docker.io/openroad/orfs:v3.0-3503-gd7c7e73f",
164+
image = "docker.io/openroad/orfs:v3.0-3695-ga037c3d9",
165165
# Use OpenROAD of this repo instead of from the docker image
166166
openroad = "//:openroad",
167-
sha256 = "d5539ade517724de3765362589be443afb2624b14391b365612c8949a7c99a19",
167+
sha256 = "a1e32aa02774b817ccb66813bbf838a6b5174ee90bdfc1a42e7e288a2a6dc25f",
168168
)
169169
use_repo(orfs, "com_github_nixos_patchelf_download")
170170
use_repo(orfs, "docker_orfs")

MODULE.bazel.lock

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

bazel/build_helper.bzl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025-2025, The OpenROAD Authors
3-
4-
5-

etc/DependencyInstaller.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ _installCommonDev() {
9191
cmakeBin=${cmakePrefix}/bin/cmake
9292
if [[ ! -f ${cmakeBin} || -z $(${cmakeBin} --version | grep ${cmakeVersionBig}) ]]; then
9393
cd "${baseDir}"
94-
eval wget https://cmake.org/files/v${cmakeVersionBig}/cmake-${cmakeVersionSmall}-${osName}-${arch}.sh
94+
eval wget https://github.com/Kitware/CMake/releases/download/v${cmakeVersionSmall}/cmake-${cmakeVersionSmall}-linux-${arch}.sh
9595
md5sum -c <(echo "${cmakeChecksum} cmake-${cmakeVersionSmall}-${osName}-${arch}.sh") || exit 1
9696
chmod +x cmake-${cmakeVersionSmall}-${osName}-${arch}.sh
9797
./cmake-${cmakeVersionSmall}-${osName}-${arch}.sh --skip-license --prefix=${cmakePrefix}
@@ -861,10 +861,10 @@ while [ "$#" -gt 0 ]; do
861861
export GIT_SSL_NO_VERIFY=true
862862
;;
863863
-save-deps-prefixes=*)
864-
saveDepsPrefixes=$(realpath ${1#-save-deps-prefixes=})
864+
saveDepsPrefixes=$(realpath ${1#*=})
865865
;;
866866
-threads=*)
867-
numThreads=${1}
867+
numThreads=${1#*=}
868868
;;
869869
*)
870870
echo "unknown option: ${1}" >&2
@@ -933,11 +933,13 @@ case "${os}" in
933933
_installOrTools "ubuntu" "${ubuntuVersion}" "amd64"
934934
fi
935935
;;
936-
"Red Hat Enterprise Linux" | "Rocky Linux")
936+
"Red Hat Enterprise Linux" | "Rocky Linux" | "AlmaLinux")
937937
if [[ "${os}" == "Red Hat Enterprise Linux" ]]; then
938938
rhelVersion=$(rpm -q --queryformat '%{VERSION}' redhat-release | cut -d. -f1)
939939
elif [[ "${os}" == "Rocky Linux" ]]; then
940940
rhelVersion=$(rpm -q --queryformat '%{VERSION}' rocky-release | cut -d. -f1)
941+
elif [[ "${os}" == "AlmaLinux" ]]; then
942+
rhelVersion=$(rpm -q --queryformat '%{VERSION}' almalinux-release | cut -d. -f1)
941943
fi
942944
if [[ "${rhelVersion}" != "8" ]] && [[ "${rhelVersion}" != "9" ]]; then
943945
echo "ERROR: Unsupported ${rhelVersion} version. Versions '8' and '9' are supported."
@@ -1018,4 +1020,8 @@ esac
10181020
if [[ ! -z ${saveDepsPrefixes} ]]; then
10191021
mkdir -p "$(dirname $saveDepsPrefixes)"
10201022
echo "$CMAKE_PACKAGE_ROOT_ARGS" > $saveDepsPrefixes
1023+
# Fix permissions if running as root to allow user access
1024+
if [[ $(id -u) == 0 && ! -z "${SUDO_USER+x}" ]]; then
1025+
chown "$SUDO_USER:$(id -gn "$SUDO_USER")" "$saveDepsPrefixes" 2>/dev/null || true
1026+
fi
10211027
fi

src/Design.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
#include <tcl.h>
77

8+
#include <cmath>
9+
#include <cstdint>
10+
#include <istream>
11+
#include <mutex>
12+
#include <ostream>
813
#include <string>
914

1015
#include "ant/AntennaChecker.hh"

src/Main.cc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
// Copyright (c) 2019-2025, The OpenROAD Authors
33

44
#include <libgen.h>
5+
#include <stdlib.h> // NOLINT(modernize-deprecated-headers): for setenv()
6+
#include <strings.h>
57
#include <tcl.h>
68

79
#include <array>
8-
#include <boost/stacktrace.hpp>
910
#include <climits>
1011
#include <clocale>
1112
#include <csignal>
@@ -15,6 +16,9 @@
1516
#include <iostream>
1617
#include <memory>
1718
#include <string>
19+
#include <system_error>
20+
21+
#include "boost/stacktrace/stacktrace.hpp"
1822
#ifdef ENABLE_READLINE
1923
// If you get an error on this include be sure you have
2024
// the package tcl-tclreadline-devel installed
@@ -227,12 +231,14 @@ int main(int argc, char* argv[])
227231

228232
log_filename = findCmdLineKey(argc, argv, "-log");
229233
if (log_filename) {
230-
remove(log_filename);
234+
std::error_code err_ignore;
235+
std::filesystem::remove(log_filename, err_ignore);
231236
}
232237

233238
metrics_filename = findCmdLineKey(argc, argv, "-metrics");
234239
if (metrics_filename) {
235-
remove(metrics_filename);
240+
std::error_code err_ignored;
241+
std::filesystem::remove(metrics_filename, err_ignored);
236242
}
237243

238244
no_settings = findCmdLineFlag(argc, argv, "-no_settings");

src/OpenRoad.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
#include "ord/OpenRoad.hh"
55

6+
#include <cstdlib>
7+
#include <cstring>
68
#include <filesystem>
79
#include <fstream>
810
#include <iostream>
11+
#include <stdexcept>
12+
#include <string>
913
#include <thread>
1014
#include <vector>
1115

src/Timing.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <tcl.h>
77

88
#include <algorithm>
9+
#include <array>
10+
#include <cstring>
911
#include <set>
1012
#include <utility>
1113
#include <vector>

src/ant/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ cc_library(
4646
":tcl",
4747
],
4848
hdrs = [
49-
"include/ant/AntennaChecker.hh",
5049
"include/ant/MakeAntennaChecker.hh",
5150
],
5251
includes = ["include"],
5352
deps = [
53+
":ant",
5454
"//:ord",
5555
"//src/odb",
5656
"//src/utl",

0 commit comments

Comments
 (0)