From 24811b4c6a6592b08dbb41243db188a8b310312d Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Wed, 3 Dec 2025 22:14:38 +0100 Subject: Improve SQL handling & aggregate memory events (WIP) --- salis.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'salis.py') diff --git a/salis.py b/salis.py index 7c07ff0..defa8c8 100755 --- a/salis.py +++ b/salis.py @@ -343,12 +343,11 @@ build_cmd.extend(["-O3", "-DNDEBUG"] if args.optimized else ["-ggdb"]) if args.command in ["load", "new"]: build_cmd.extend(ui_vars.flags) - # Enable POSIX extensions (open_memstream) + # Enable POSIX extensions (open_memstream) if compression is enabled + # This makes it easy to generate compressed data arrays for lzip using + # C's native FILE interface. build_cmd.extend(["-lz", "-D_POSIX_C_SOURCE=200809L"] if args.compress else []) - - # Enable GNU extensions (asprintf) - # This allows managing large SQL strings more easily - build_cmd.extend(["-lsqlite3", "-D_GNU_SOURCE"] if args.data_push_pow != 0 else []) + build_cmd.extend(["-lsqlite3"] if args.data_push_pow != 0 else []) info("Using build command:", " ".join(build_cmd)) subprocess.run(build_cmd, check=True) -- cgit v1.2.1