@@ -4,13 +4,13 @@ _BAZEL_SKYLIB_VERSION = "1.3.0"
44_PLATFORMS_VERSION = "1.0.0"
55_BAZEL_TOOLCHAIN_VERSION = "1.6.0"
66_RULES_BOOST_COMMIT = "00b9b9ecb9b43564de44ea0b10e22b29dcf84d79"
7- _LLVM_COMMIT = "e0f3110b854a476c16cce7b44472cd7838d344e9 " # Keep in sync with Version.h
8- _ABSL_COMMIT = "4ffaea74c1f5408e0757547a1ca0518ad43fa9f1 "
7+ _LLVM_COMMIT = "2078da43e25a4623cab2d0d60decddf709aaea28 " # Keep in sync with Version.h
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
@@ -82,14 +82,14 @@ def fetch_direct_dependencies():
8282 # Keep the name 'zlib' so that Protobuf doesn't pull in another copy.
8383 #
8484 # 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
8586 http_archive (
8687 name = "zlib" ,
8788 build_file = "@scip_clang//third_party:zlib.BUILD" ,
88- sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1 " ,
89- strip_prefix = "zlib-1.2.11 " ,
89+ sha256 = "17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c " ,
90+ strip_prefix = "zlib-1.3.1 " ,
9091 urls = [
91- "https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz" ,
92- "https://zlib.net/zlib-1.2.11.tar.gz" ,
92+ "https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz" ,
9393 ],
9494 )
9595
@@ -103,17 +103,33 @@ def fetch_direct_dependencies():
103103 ],
104104 )
105105
106+ # LLVM 18+ uses zlib-ng instead of zlib
107+ http_archive (
108+ name = "llvm_zlib" ,
109+ build_file = "@llvm-raw//utils/bazel/third_party_build:zlib-ng.BUILD" ,
110+ sha256 = "e36bb346c00472a1f9ff2a0a4643e590a254be6379da7cddd9daeb9a7f296731" ,
111+ strip_prefix = "zlib-ng-2.0.7" ,
112+ urls = [
113+ "https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.0.7.zip" ,
114+ ],
115+ )
116+
117+ # Cherry-pick fix for CUDA assertion failure from
118+ # https://github.com/llvm/llvm-project/pull/173762
119+ # Can be removed once LLVM merges the fix and we update the commit.
106120 http_archive (
107121 name = "llvm-raw" ,
108- sha256 = "04b76a5be88331f71a4e4fe96bccfebec302ddd0dbd9418fd5c186a7361c54fb " ,
122+ sha256 = "536a4d64ab21bc85bf95ae4dc412b36e8a9c72d487a476839f3c31c3ded69e96 " ,
109123 strip_prefix = "llvm-project-%s" % _LLVM_COMMIT ,
110124 build_file_content = "# empty" ,
111125 urls = ["https://github.com/llvm/llvm-project/archive/%s.tar.gz" % _LLVM_COMMIT ],
126+ patch_args = ["-p1" ],
127+ patches = ["//third_party:llvm-cuda-tooling.patch" ],
112128 )
113129
114130 http_archive (
115131 name = "com_google_protobuf" ,
116- sha256 = "f7042d540c969b00db92e8e1066a9b8099c8379c33f40f360eb9e1d98a36ca26 " ,
132+ sha256 = "5156b22536feaa88cf95503153a6b2cd67cc80f20f1218f154b84a12c288a220 " ,
117133 urls = ["https://github.com/protocolbuffers/protobuf/archive/v%s.zip" % _PROTOBUF_VERSION ],
118134 strip_prefix = "protobuf-%s" % _PROTOBUF_VERSION ,
119135 )
@@ -132,11 +148,9 @@ def fetch_direct_dependencies():
132148 # https://sourcegraph.com/github.com/protocolbuffers/protobuf/-/blob/protobuf_deps.bzl?L39-46
133149 http_archive (
134150 name = "com_google_absl" ,
135- sha256 = "fee8ec623d8bbf0ecb9563a8e08ae319d1ca9fdf8c1c84384520a6992f571659" ,
136- strip_prefix = "abseil-cpp-%s" % _ABSL_COMMIT ,
137- urls = ["https://github.com/abseil/abseil-cpp/archive/%s.zip" % _ABSL_COMMIT ],
138- patch_args = ["-p1" ],
139- patches = ["//third_party:abseil.patch" ],
151+ sha256 = "95e90be7c3643e658670e0dd3c1b27092349c34b632c6e795686355f67eca89f" ,
152+ strip_prefix = "abseil-cpp-%s" % _ABSL_VERSION ,
153+ urls = ["https://github.com/abseil/abseil-cpp/archive/%s.zip" % _ABSL_VERSION ],
140154 )
141155
142156 # Abseil also has a flags/argument parsing library, but let's
@@ -168,7 +182,7 @@ def fetch_direct_dependencies():
168182 # NOTE: fmt also comes through spdlog, we don't have an explicit dep on fmt.
169183 http_archive (
170184 name = "spdlog" ,
171- sha256 = "93a270dd7ec8fa672eb4feaef443dc14a4a9edc7b59aea998ae5da6cbf7b7119 " ,
185+ sha256 = "d2fef585c9879dd239dc498e2e8a1e22982b3ed67b2d14e78622b7ef25bdfdfa " ,
172186 build_file = "@scip_clang//third_party:spdlog.BUILD" ,
173187 strip_prefix = "spdlog-%s" % _SPDLOG_COMMIT ,
174188 urls = ["https://github.com/gabime/spdlog/archive/%s.tar.gz" % _SPDLOG_COMMIT ],
0 commit comments