Skip to content

Commit 64688e6

Browse files
author
Tim 'mithro' Ansell
authored
Merge pull request #196 from mithro/openroad-upgrade
Upgrade OpenROAD
2 parents 2d5d753 + 1f3a708 commit 64688e6

File tree

18 files changed

+940
-620
lines changed

18 files changed

+940
-620
lines changed

WORKSPACE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ llvm_toolchain(
9090
# },
9191
)
9292

93+
maybe(
94+
http_archive,
95+
name = "rules_proto",
96+
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
97+
strip_prefix = "rules_proto-5.3.0-21.7",
98+
urls = [
99+
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
100+
],
101+
)
102+
93103
maybe(
94104
http_archive,
95105
name = "rules_python",

dependency_support/com_github_quantamhd_lemon/bundled.BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ cc_library(
5454
"-fexceptions",
5555
],
5656
features = ["-use_header_modules"], # Incompatible with -fexception.
57+
includes = ["."],
5758
deps = ["@org_gnu_glpk//:glpk"],
5859
visibility = [
5960
"//visibility:public",

dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DEPS = [
4343
"@boost//:system",
4444
"@boost//:thread",
4545
"@local_config_python//:python_headers",
46-
"@org_tuxfamily_eigen//:eigen3",
46+
"@eigen//:eigen3",
4747
]
4848

4949
DEFINES = [

dependency_support/com_google_absl/com_google_absl.bzl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414

1515
"""Registers Bazel workspaces for the GNU readline library."""
1616

17-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
17+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
1818
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1919

2020
def com_google_absl():
2121
maybe(
22-
http_archive,
22+
git_repository,
2323
name = "com_google_absl",
24-
strip_prefix = "abseil-cpp-20211102.0",
25-
urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.zip"],
26-
sha256 = "a4567ff02faca671b95e31d315bab18b42b6c6f1a60e91c6ea84e5a2142112c2",
24+
tag = "20230125.3",
25+
patches = ["@com_google_ortools//patches:abseil-cpp-20230125.3.patch"],
26+
patch_args = ["-p1"],
27+
remote = "https://github.com/abseil/abseil-cpp.git",
2728
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Required to make this a package.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Registers Bazel workspaces for the GNU readline library."""
16+
17+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
18+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
19+
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
20+
21+
def com_google_ortools():
22+
maybe(
23+
http_archive,
24+
name = "com_google_ortools",
25+
strip_prefix = "or-tools-9.7",
26+
urls = ["https://github.com/google/or-tools/archive/refs/tags/v9.7.tar.gz"],
27+
sha256 = "054d9517fc6c83f15150c93ef1c2c674ffd7d4a0d1fdc78f6ef8bc3e25c2e339",
28+
)
29+
maybe(
30+
new_git_repository,
31+
name = "scip",
32+
build_file = "@com_google_ortools//bazel:scip.BUILD",
33+
patches = ["@com_google_ortools//bazel:scip.patch"],
34+
patch_args = ["-p1"],
35+
tag = "v803",
36+
remote = "https://github.com/scipopt/scip.git",
37+
)
38+
maybe(
39+
http_archive,
40+
name = "bliss",
41+
build_file = "@com_google_ortools//bazel:bliss.BUILD",
42+
patches = ["@com_google_ortools//bazel:bliss-0.73.patch"],
43+
sha256 = "f57bf32804140cad58b1240b804e0dbd68f7e6bf67eba8e0c0fa3a62fd7f0f84",
44+
url = "https://github.com/google/or-tools/releases/download/v9.0/bliss-0.73.zip",
45+
#url = "http://www.tcs.hut.fi/Software/bliss/bliss-0.73.zip",
46+
)
47+
maybe(
48+
new_git_repository,
49+
name = "eigen",
50+
tag = "3.4.0",
51+
remote = "https://gitlab.com/libeigen/eigen.git",
52+
build_file_content = """
53+
cc_library(
54+
name = 'eigen3',
55+
srcs = [],
56+
includes = ['.'],
57+
hdrs = glob(['Eigen/**']),
58+
visibility = ['//visibility:public'],
59+
)
60+
""",
61+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Required to make this a package.

dependency_support/org_tuxfamily_eigen/org_tuxfamily_eigen.bzl renamed to dependency_support/com_google_protobuf/com_google_protobuf.bzl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Loads the Eigen C++ template library for linear algebra."""
15+
"""Registers Bazel workspaces for the GNU readline library."""
1616

17-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
17+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
1818
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1919

20-
def org_tuxfamily_eigen():
20+
def com_google_protobuf():
2121
maybe(
22-
new_git_repository,
23-
name = "org_tuxfamily_eigen",
24-
build_file = Label("@rules_hdl//dependency_support/org_tuxfamily_eigen:bundled.BUILD.bazel"),
25-
commit = "eb71e5db988d4a23e619ed054efd3eb751cdd026", # 2021-03-17
26-
remote = "https://gitlab.com/libeigen/eigen.git",
27-
shallow_since = "1615946824 +0100",
22+
git_repository,
23+
name = "com_google_protobuf",
24+
tag = "v23.3",
25+
patches = ["@com_google_ortools//patches:protobuf-v23.3.patch"],
26+
patch_args = ["-p1"],
27+
remote = "https://github.com/protocolbuffers/protobuf.git",
2828
)

dependency_support/dependency_support.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ load("@rules_hdl//dependency_support/com_github_yosyshq_prjtrellis:com_github_yo
3333
load("@rules_hdl//dependency_support/com_github_yosyshq_prjtrellis_db:com_github_yosyshq_prjtrellis_db.bzl", "com_github_yosyshq_prjtrellis_db")
3434
load("@rules_hdl//dependency_support/com_google_absl:com_google_absl.bzl", "com_google_absl")
3535
load("@rules_hdl//dependency_support/com_google_googletest:com_google_googletest.bzl", "com_google_googletest")
36+
load("@rules_hdl//dependency_support/com_google_ortools:com_google_ortools.bzl", "com_google_ortools")
37+
load("@rules_hdl//dependency_support/com_google_protobuf:com_google_protobuf.bzl", "com_google_protobuf")
3638
load("@rules_hdl//dependency_support/com_google_skywater_pdk:com_google_skywater_pdk.bzl", "com_google_skywater_pdk")
3739
load("@rules_hdl//dependency_support/com_icarus_iverilog:com_icarus_iverilog.bzl", "com_icarus_iverilog")
3840
load("@rules_hdl//dependency_support/com_opencircuitdesign_magic:com_opencircuitdesign_magic.bzl", "com_opencircuitdesign_magic")
@@ -56,7 +58,6 @@ load("@rules_hdl//dependency_support/org_sourceware_libffi:org_sourceware_libffi
5658
load("@rules_hdl//dependency_support/org_swig:org_swig.bzl", "org_swig")
5759
load("@rules_hdl//dependency_support/org_theopenroadproject:org_theopenroadproject.bzl", "org_theopenroadproject")
5860
load("@rules_hdl//dependency_support/org_theopenroadproject_asap7:org_theopenroadproject_asap7.bzl", "org_theopenroadproject_asap7")
59-
load("@rules_hdl//dependency_support/org_tuxfamily_eigen:org_tuxfamily_eigen.bzl", "org_tuxfamily_eigen")
6061
load("@rules_hdl//dependency_support/pybind11:pybind11.bzl", "pybind11")
6162
load("@rules_hdl//dependency_support/tk_tcl:tk_tcl.bzl", "tk_tcl")
6263
load("@rules_hdl//dependency_support/verilator:verilator.bzl", "verilator")
@@ -78,6 +79,8 @@ def dependency_support():
7879
com_github_yosyshq_prjtrellis_db()
7980
com_google_absl()
8081
com_google_googletest()
82+
com_google_protobuf()
83+
com_google_ortools()
8184
com_google_skywater_pdk()
8285
com_icarus_iverilog()
8386
com_opencircuitdesign_magic()
@@ -101,7 +104,6 @@ def dependency_support():
101104
org_swig()
102105
org_theopenroadproject()
103106
org_theopenroadproject_asap7()
104-
org_tuxfamily_eigen()
105107
pybind11()
106108
tk_tcl()
107109
verilator()

0 commit comments

Comments
 (0)