Build from source¶
Prerequisites¶
- CMake ≥ 3.15
- A C/C++17 toolchain
- macOS: Xcode Command Line Tools
- Linux:
gccorclang+make - Windows: Visual Studio Build Tools 2022+
git(for cloning with submodules)
No system dependencies — all third-party libraries (zlib, zstd, lz4,
base64, yxml) are vendored under vendor/.
Clone¶
If you already cloned without submodules:
Build¶
The binary is produced at ./cli/mscompress.
Test¶
Run a single test by name:
Install (optional)¶
The build does not install the binary to a system location by default. Copy it manually:
Or run from the build tree.
Debug build¶
Then attach lldb / gdb / valgrind to the resulting binary.