Skip to content

Commit 24d4398

Browse files
cblichmanncopybara-github
authored andcommitted
CMake: Update deps and adjust build config
Same as with the previous Bazel change: - Update Abseil to 20260107.1. - Update Benchmark to v1.9.5. - Update GoogleTest to v1.17.0. - Update libffi to v3.4.7 and adjust included files. - Update libunwind to v1.8.3 and adjust included files. - Update Protobuf to v34.1. - Update zlib to v1.3.2. Drive-by: - Use `std::nullptr_t` in sandbox.h. PiperOrigin-RevId: 902448120 Change-Id: I8742273dbc0a546461610055ff7113dfc7891fad
1 parent aa8882c commit 24d4398

8 files changed

Lines changed: 21 additions & 16 deletions

File tree

cmake/abseil-cpp.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(absl
16-
URL https://github.com/abseil/abseil-cpp/releases/download/20260107.0/abseil-cpp-20260107.0.tar.gz
17-
URL_HASH SHA256=4c124408da902be896a2f368042729655709db5e3004ec99f57e3e14439bc1b2
16+
URL https://github.com/abseil/abseil-cpp/releases/download/20260107.1/abseil-cpp-20260107.1.tar.gz
17+
URL_HASH SHA256=4314e2a7cbac89cac25a2f2322870f343d81579756ceff7f431803c2c9090195
1818
)
1919
set(ABSL_CXX_STANDARD ${SAPI_CXX_STANDARD} CACHE STRING "" FORCE)
2020
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)

cmake/benchmark.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(benchmark
16-
URL https://github.com/google/benchmark/archive/604f6fd3f4b34a84ec4eb4db81d842fa4db829cd.zip # 2023-05-30
17-
URL_HASH SHA256=342705876335bf894147e052d0dac141fe15962034b41bef5aa59c4b279ca89c
16+
URL https://github.com/google/benchmark/archive/refs/tags/v1.9.5.tar.gz
17+
URL_HASH SHA256=9631341c82bac4a288bef951f8b26b41f69021794184ece969f8473977eaa340
1818
)
1919
set(BENCHMARK_ENABLE_TESTING OFF)
2020
set(BENCHMARK_ENABLE_EXCEPTIONS OFF)

cmake/googletest.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(googletest
16-
URL https://github.com/google/googletest/archive/334704df263b480a3e9e7441ed3292a5e30a37ec.zip # 2023-06-06
17-
URL_HASH SHA256=a217118c2c36a3632b594af7ff98111a65bb2b980b726a7fa62305e02a998440
16+
URL https://github.com/google/googletest/releases/download/v1.17.0/googletest-1.17.0.tar.gz
17+
URL_HASH SHA256=65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c
1818
)
1919
FetchContent_MakeAvailable(googletest)

cmake/libffi.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(libffi
16-
URL https://github.com/libffi/libffi/releases/download/v3.3-rc2/libffi-3.3-rc2.tar.gz
17-
URL_HASH SHA256=653ffdfc67fbb865f39c7e5df2a071c0beb17206ebfb0a9ecb18a18f63f6b263
16+
URL https://github.com/libffi/libffi/releases/download/v3.4.7/libffi-3.4.7.tar.gz
17+
URL_HASH SHA256=138607dee268bdecf374adf9144c00e839e38541f75f24a1fcf18b78fda48b2d
1818
)
1919
FetchContent_GetProperties(libffi)
2020
if(NOT libffi_POPULATED)
@@ -81,11 +81,13 @@ add_library(ffi STATIC
8181
${libffi_SOURCE_DIR}/include/ffi_cfi.h
8282
${libffi_SOURCE_DIR}/include/ffi_common.h
8383
${libffi_SOURCE_DIR}/include/ffitarget.h
84+
${libffi_SOURCE_DIR}/include/tramp.h
8485
${libffi_SOURCE_DIR}/src/closures.c
8586
${libffi_SOURCE_DIR}/src/debug.c
8687
${libffi_SOURCE_DIR}/src/java_raw_api.c
8788
${libffi_SOURCE_DIR}/src/prep_cif.c
8889
${libffi_SOURCE_DIR}/src/raw_api.c
90+
${libffi_SOURCE_DIR}/src/tramp.c
8991
${libffi_SOURCE_DIR}/src/types.c
9092
${_ffi_platform_srcs}
9193
)

cmake/libunwind.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(libunwind
16-
URL https://github.com/libunwind/libunwind/releases/download/v1.6.2/libunwind-1.6.2.tar.gz
17-
URL_HASH SHA256=4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976
16+
URL https://github.com/libunwind/libunwind/releases/download/v1.8.3/libunwind-1.8.3.tar.gz
17+
URL_HASH SHA256=be30d910e67f58d82e753231f1357f326a1a088acf126b21ff77e60aab19b90b
1818
)
1919
FetchContent_GetProperties(libunwind)
2020
if(NOT libunwind_POPULATED)
@@ -136,7 +136,6 @@ add_library(unwind_ptrace STATIC
136136
${libunwind_SOURCE_DIR}/src/elfxx.h
137137
${libunwind_SOURCE_DIR}/src/os-linux.h
138138
${libunwind_SOURCE_DIR}/src/x86_64/init.h
139-
${libunwind_SOURCE_DIR}/src/x86_64/offsets.h
140139
${libunwind_SOURCE_DIR}/src/x86_64/ucontext_i.h
141140
${libunwind_SOURCE_DIR}/src/x86_64/unwind_i.h
142141
# included_sources
@@ -151,13 +150,15 @@ add_library(unwind_ptrace STATIC
151150
${libunwind_SOURCE_DIR}/src/dwarf/Gparser.c
152151
${libunwind_SOURCE_DIR}/src/dwarf/Gpe.c
153152
${libunwind_SOURCE_DIR}/src/dwarf/global.c
153+
${libunwind_SOURCE_DIR}/src/mi/Gaddress_validator.c
154154
${libunwind_SOURCE_DIR}/src/mi/Gdestroy_addr_space.c
155155
${libunwind_SOURCE_DIR}/src/mi/Gdyn-extract.c
156156
${libunwind_SOURCE_DIR}/src/mi/Gfind_dynamic_proc_info.c
157157
${libunwind_SOURCE_DIR}/src/mi/Gget_accessors.c
158158
${libunwind_SOURCE_DIR}/src/mi/Gget_proc_name.c
159159
${libunwind_SOURCE_DIR}/src/mi/Gget_reg.c
160160
${libunwind_SOURCE_DIR}/src/mi/Gput_dynamic_unwind_info.c
161+
${libunwind_SOURCE_DIR}/src/mi/Gset_reg.c
161162
${libunwind_SOURCE_DIR}/src/mi/flush_cache.c
162163
${libunwind_SOURCE_DIR}/src/mi/init.c
163164
${libunwind_SOURCE_DIR}/src/mi/mempool.c
@@ -174,8 +175,10 @@ add_library(unwind_ptrace STATIC
174175
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_elf.c
175176
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_find_proc_info.c
176177
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_get_dyn_info_list_addr.c
178+
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_get_elf_filename.c
177179
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_get_proc_name.c
178180
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_internal.h
181+
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_ptrauth_insn_mask.c
179182
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_put_unwind_info.c
180183
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_reg_offset.c
181184
${libunwind_SOURCE_DIR}/src/ptrace/_UPT_resume.c

cmake/protobuf.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(protobuf
16-
URL https://github.com/protocolbuffers/protobuf/archive/refs/tags/v31.0.tar.gz # 2025-05-14
17-
URL_HASH SHA256=2b695cb1eaef8e173f884235ee6d55f57186e95d89ebb31361ee55cb5fd1b996
16+
URL https://github.com/protocolbuffers/protobuf/releases/download/v34.1/protobuf-34.1.tar.gz
17+
URL_HASH SHA256=e4e6ff10760cf747a2decd1867741f561b216bd60cc4038c87564713a6da1848
1818
)
1919

2020
set(protobuf_ABSL_PROVIDER "package" CACHE STRING "" FORCE)

cmake/zlib.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
FetchContent_Declare(zlib
16-
URL https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
17-
URL_HASH SHA256=9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
16+
URL https://github.com/madler/zlib/releases/download/v1.3.2/zlib-1.3.2.tar.gz
17+
URL_HASH SHA256=bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16
1818
)
1919
FetchContent_MakeAvailable(zlib)
2020

sandboxed_api/sandbox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PtrOrCallable {
4343
public:
4444
explicit PtrOrCallable(v::Callable* callable) : callable_(callable) {}
4545
explicit PtrOrCallable(v::Ptr* ptr) : ptr_(ptr) {}
46-
explicit PtrOrCallable(nullptr_t) : ptr_(nullptr) {}
46+
explicit PtrOrCallable(std::nullptr_t) : ptr_(nullptr) {}
4747

4848
bool IsCallable() const { return callable_ != nullptr; }
4949
bool IsPtr() const { return !IsCallable(); }

0 commit comments

Comments
 (0)