diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-08 02:36:59 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-08 02:36:59 +0900 |
| commit | 2dba550a2b874c063a59c86092a789e6f972d831 (patch) | |
| tree | 0a7c91a099f5de4f8390cb3f3ad5ffc95a9fdf3e /internal | |
| parent | 8c64812b34046864d3dff885037f55788c471148 (diff) | |
internal/rosa/zlib: 1.3.1 to 1.3.2
This also switches to the CMake build system because upstream broke their old build system.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/zlib.go | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/internal/rosa/zlib.go b/internal/rosa/zlib.go index 072971c5..00cef53f 100644 --- a/internal/rosa/zlib.go +++ b/internal/rosa/zlib.go @@ -4,22 +4,28 @@ import "hakurei.app/internal/pkg" func (t Toolchain) newZlib() (pkg.Artifact, string) { const ( - version = "1.3.1" - checksum = "E-eIpNzE8oJ5DsqH4UuA_0GDKuQF5csqI8ooDx2w7Vx-woJ2mb-YtSbEyIMN44mH" + version = "1.3.2" + checksum = "KHZrePe42vL2XvOUE3KlJkp1UgWhWkl0jjT_BOvFhuM4GzieEH9S7CioepOFVGYB" ) return t.NewPackage("zlib", version, pkg.NewHTTPGetTar( nil, "https://www.zlib.net/fossils/zlib-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, - ), &PackageAttr{ - Env: []string{ - "CC=clang -fPIC", + ), nil, &CMakeHelper{ + Cache: [][2]string{ + {"CMAKE_BUILD_TYPE", "Release"}, + + {"ZLIB_BUILD_TESTING", "OFF"}, + {"ZLIB_BUILD_SHARED", "ON"}, + {"ZLIB_BUILD_STATIC", "ON"}, + {"ZLIB_BUILD_MINIZIP", "OFF"}, + + {"ZLIB_INSTALL", "ON"}, + {"ZLIB_PREFIX", "OFF"}, }, - }, &MakeHelper{ - OmitDefaults: true, - Host: `""`, - Build: `""`, + // ninja dependency loop + Make: true, }), version } func init() { |
