11load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" , "http_file" )
22
33_BAZEL_SKYLIB_VERSION = "1.3.0"
4- _PLATFORMS_COMMIT = "3fbc687756043fb58a407c2ea8c944bc2fe1d922 " # 2022 Nov 10
5- _BAZEL_TOOLCHAIN_VERSION = "0.10.3 "
4+ _PLATFORMS_VERSION = "1.0.0 " # Updated from 2022 commit for visionos support
5+ _BAZEL_TOOLCHAIN_VERSION = "1.6.0 "
66_RULES_BOOST_COMMIT = "00b9b9ecb9b43564de44ea0b10e22b29dcf84d79"
77_LLVM_COMMIT = "e0f3110b854a476c16cce7b44472cd7838d344e9" # Keep in sync with Version.h
8- _ABSL_COMMIT = "4ffaea74c1f5408e0757547a1ca0518ad43fa9f1 "
8+ _ABSL_VERSION = "20240722.0 "
99_CXXOPTS_VERSION = "3.0.0"
1010_RAPIDJSON_COMMIT = "a98e99992bd633a2736cc41f96ec85ef0c50e44d"
1111_WYHASH_COMMIT = "ea3b25e1aef55d90f707c3a292eeb9162e2615d8"
12- _SPDLOG_COMMIT = "edc51df1bdad8667b628999394a1e7c4dc6f3658"
13- _PROTOBUF_VERSION = "3.21.12 "
12+ _SPDLOG_COMMIT = "486b55554f11c9cccc913e11a87085b2a91f706f" # v1.16.0
13+ _PROTOBUF_VERSION = "25.3 "
1414_SCIP_COMMIT = "aa0e511dcfefbacc3b96dcc2fe2abd9894416b1e"
1515_UTFCPP_VERSION = "4.0.5"
1616# ^ When bumping this version, check if any new fields are introduced
@@ -22,7 +22,7 @@ _UTFCPP_VERSION = "4.0.5"
2222# See https://github.com/google/perfetto/issues/271#issuecomment-1527691232
2323_PERFETTO_VERSION = "33.1" # Keep in sync with docs/Development.md
2424_DOCTEST_VERSION = "2.4.9"
25- _DTL_VERSION = "1.20 "
25+ _DTL_VERSION = "1.21 "
2626_RULES_PYTHON_VERSION = "0.18.1"
2727
2828def fetch_direct_dependencies ():
@@ -37,17 +37,19 @@ def fetch_direct_dependencies():
3737
3838 http_archive (
3939 name = "platforms" ,
40- sha256 = "b4a3b45dc4202e2b3e34e3bc49d2b5b37295fc23ea58d88fb9e01f3642ad9b55" ,
41- strip_prefix = "platforms-%s" % _PLATFORMS_COMMIT ,
42- urls = ["https://github.com/bazelbuild/platforms/archive/%s.zip" % _PLATFORMS_COMMIT ],
40+ sha256 = "3384eb1c30762704fbe38e440204e114154086c8fc8a8c2e3e28441028c019a8" ,
41+ urls = [
42+ "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/{0}/platforms-{0}.tar.gz" .format (_PLATFORMS_VERSION ),
43+ "https://github.com/bazelbuild/platforms/releases/download/{0}/platforms-{0}.tar.gz" .format (_PLATFORMS_VERSION ),
44+ ],
4345 )
4446
4547 http_archive (
4648 name = "toolchains_llvm" ,
47- sha256 = "b7cd301ef7b0ece28d20d3e778697a5e3b81828393150bed04838c0c52963a01 " ,
48- strip_prefix = "toolchains_llvm-%s" % _BAZEL_TOOLCHAIN_VERSION ,
49+ sha256 = "2b298a1d7ea99679f5edf8af09367363e64cb9fbc46e0b7c1b1ba2b1b1b51058 " ,
50+ strip_prefix = "toolchains_llvm-v %s" % _BAZEL_TOOLCHAIN_VERSION ,
4951 canonical_id = _BAZEL_TOOLCHAIN_VERSION ,
50- url = "https://github.com/grailbio/ bazel-toolchain/ releases/download/{0}/toolchains_llvm-{0}.tar.gz" .format (_BAZEL_TOOLCHAIN_VERSION ),
52+ url = "https://github.com/bazel-contrib/toolchains_llvm/ releases/download/v {0}/toolchains_llvm-v {0}.tar.gz" .format (_BAZEL_TOOLCHAIN_VERSION ),
5153 )
5254
5355 http_archive (
@@ -59,11 +61,12 @@ def fetch_direct_dependencies():
5961 ],
6062 )
6163
64+ _HEDRON_COMMIT = "abb61a688167623088f8768cc9264798df6a9d10"
6265 http_archive (
63- name = "com_grail_bazel_compdb " ,
64- sha256 = "d32835b26dd35aad8fd0ba0d712265df6565a3ad860d39e4c01ad41059ea7eda " ,
65- strip_prefix = "bazel-compilation-database-0.5.2" ,
66- urls = [ "https://github.com/grailbio/ bazel-compilation-database/archive/0.5.2.tar.gz" ] ,
66+ name = "hedron_compile_commands " ,
67+ sha256 = "1b08abffbfbe89f6dbee6a5b33753792e8004f6a36f37c0f72115bec86e68724 " ,
68+ url = "https://github.com/hedronvision/ bazel-compile-commands-extractor/archive/%s.tar.gz" % _HEDRON_COMMIT ,
69+ strip_prefix = " bazel-compile-commands-extractor-%s" % _HEDRON_COMMIT ,
6770 )
6871
6972 http_archive (
@@ -79,14 +82,14 @@ def fetch_direct_dependencies():
7982 # Keep the name 'zlib' so that Protobuf doesn't pull in another copy.
8083 #
8184 # https://sourcegraph.com/github.com/protocolbuffers/protobuf/-/blob/protobuf_deps.bzl?L48-58
85+ # Using zlib 1.3.1 to fix macro conflicts with macOS headers in zlib 1.2.11
8286 http_archive (
8387 name = "zlib" ,
8488 build_file = "@scip_clang//third_party:zlib.BUILD" ,
85- sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1 " ,
86- strip_prefix = "zlib-1.2.11 " ,
89+ sha256 = "17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c " ,
90+ strip_prefix = "zlib-1.3.1 " ,
8791 urls = [
88- "https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz" ,
89- "https://zlib.net/zlib-1.2.11.tar.gz" ,
92+ "https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz" ,
9093 ],
9194 )
9295
@@ -110,7 +113,7 @@ def fetch_direct_dependencies():
110113
111114 http_archive (
112115 name = "com_google_protobuf" ,
113- sha256 = "f7042d540c969b00db92e8e1066a9b8099c8379c33f40f360eb9e1d98a36ca26 " ,
116+ sha256 = "5156b22536feaa88cf95503153a6b2cd67cc80f20f1218f154b84a12c288a220 " ,
114117 urls = ["https://github.com/protocolbuffers/protobuf/archive/v%s.zip" % _PROTOBUF_VERSION ],
115118 strip_prefix = "protobuf-%s" % _PROTOBUF_VERSION ,
116119 )
@@ -129,11 +132,9 @@ def fetch_direct_dependencies():
129132 # https://sourcegraph.com/github.com/protocolbuffers/protobuf/-/blob/protobuf_deps.bzl?L39-46
130133 http_archive (
131134 name = "com_google_absl" ,
132- sha256 = "fee8ec623d8bbf0ecb9563a8e08ae319d1ca9fdf8c1c84384520a6992f571659" ,
133- strip_prefix = "abseil-cpp-%s" % _ABSL_COMMIT ,
134- urls = ["https://github.com/abseil/abseil-cpp/archive/%s.zip" % _ABSL_COMMIT ],
135- patch_args = ["-p1" ],
136- patches = ["//third_party:abseil.patch" ],
135+ sha256 = "95e90be7c3643e658670e0dd3c1b27092349c34b632c6e795686355f67eca89f" ,
136+ strip_prefix = "abseil-cpp-%s" % _ABSL_VERSION ,
137+ urls = ["https://github.com/abseil/abseil-cpp/archive/%s.zip" % _ABSL_VERSION ],
137138 )
138139
139140 # Abseil also has a flags/argument parsing library, but let's
@@ -165,7 +166,7 @@ def fetch_direct_dependencies():
165166 # NOTE: fmt also comes through spdlog, we don't have an explicit dep on fmt.
166167 http_archive (
167168 name = "spdlog" ,
168- sha256 = "93a270dd7ec8fa672eb4feaef443dc14a4a9edc7b59aea998ae5da6cbf7b7119 " ,
169+ sha256 = "d2fef585c9879dd239dc498e2e8a1e22982b3ed67b2d14e78622b7ef25bdfdfa " ,
169170 build_file = "@scip_clang//third_party:spdlog.BUILD" ,
170171 strip_prefix = "spdlog-%s" % _SPDLOG_COMMIT ,
171172 urls = ["https://github.com/gabime/spdlog/archive/%s.tar.gz" % _SPDLOG_COMMIT ],
@@ -180,7 +181,7 @@ def fetch_direct_dependencies():
180181
181182 http_archive (
182183 name = "dtl" ,
183- sha256 = "579f81bca88f4b9760a59d99c5a95bd8dd5dc2f20f33f1f9b5f64cb08979f54d " ,
184+ sha256 = "90ed2dbf4e6d687737fe25f118bbcb6aed778cecc3f2115d191a032bf8643dbd " ,
184185 build_file = "@scip_clang//third_party:dtl.BUILD" ,
185186 strip_prefix = "dtl-%s" % _DTL_VERSION ,
186187 urls = ["https://github.com/cubicdaiya/dtl/archive/v%s.tar.gz" % _DTL_VERSION ],
0 commit comments