Skip to content

Commit 301c335

Browse files
committed
cmake: set HAVE_SSIZE_T when cross-compiling
This is needed to avoid errors in older version of CMake (e.g. 3.20).
1 parent d71f1a5 commit 301c335

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pycheribuild/projects/cmake.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def setup(self):
131131
# Prefer static libraries for 3rd-party dependencies
132132
self.add_cmake_options(BUILD_SHARED_LIBS=False)
133133
self.add_cmake_options(CMAKE_USE_SYSTEM_LIBRARY_LIBUV=True)
134+
self.add_cmake_options(HAVE_SSIZE_T=True)
134135
if not (BuildLibuv.get_install_dir(self) / self.target_info.default_libdir / "libuv.a").exists():
135136
# CMake can't find the static libuv due to a different libname which is installed as libuv_a.a
136137
# for some older versions of libuv.

0 commit comments

Comments
 (0)