Skip to content
Bitcoin Roots

v29.4-roots.1 · Commit 1: [PATCH 01/13] build: port platform and dependency support

cmake/mempressure.cmake

Before: /dev/null · After: cmake/mempressure.cmake

File metadata
new file mode 100644
index 0000000000000000000000000000000000000000..22880a05ee07b85d433bfc3e55428b2c44137965

Download original patch · Release notes

Diff rows 1–18 of 18. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

cmake/mempressure.cmake ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2025-present The Bitcoin Roots developers
2
+ # Distributed under the MIT software license, see the accompanying
3
+ # file COPYING or https://opensource.org/license/mit/.
4
+
5
+ include(CheckCXXSourceCompiles)
6
+
7
+ check_cxx_source_compiles([[
8
+ #include <sys/sysinfo.h>
9
+
10
+ int main()
11
+ {
12
+ struct sysinfo info;
13
+ int rv = sysinfo(&info);
14
+ unsigned long test = info.freeram + info.bufferram + info.mem_unit;
15
+ return test + rv;
16
+ }
17
+ ]] HAVE_LINUX_SYSINFO
18
+ )