Update to 1.16.0 and Zig v0.15
Some checks failed
Continuous Integration / build (push) Has been cancelled

This commit is contained in:
Aleksandr Lebedev 2025-11-19 15:39:00 +01:00
parent 8c739469e8
commit e7c211fc64
3 changed files with 16 additions and 7 deletions

View file

@ -2,10 +2,14 @@ const std = @import("std");
pub fn build(b: *std.Build) void { pub fn build(b: *std.Build) void {
const upstream = b.dependency("spdlog", .{}); const upstream = b.dependency("spdlog", .{});
const lib = b.addStaticLibrary(.{ const lib = b.addLibrary(.{
.name = "spdlog", .name = "spdlog",
.linkage = .static,
.root_module = b.addModule("spdlog", .{
.target = b.standardTargetOptions(.{}), .target = b.standardTargetOptions(.{}),
.optimize = b.standardOptimizeOption(.{}), .optimize = b.standardOptimizeOption(.{}),
.link_libc = true,
}),
}); });
lib.linkLibCpp(); lib.linkLibCpp();
lib.addIncludePath(upstream.path("include")); lib.addIncludePath(upstream.path("include"));

View file

@ -1,12 +1,12 @@
.{ .{
.name = .spdlog, .name = .spdlog,
.version = "1.15.3", .version = "1.16.0",
.minimum_zig_version = "0.14.0", .minimum_zig_version = "0.15.0",
.fingerprint = 0x19cef80094ea6f4, .fingerprint = 0x19cef80094ea6f4,
.dependencies = .{ .dependencies = .{
.spdlog = .{ .spdlog = .{
.url = "https://github.com/gabime/spdlog/archive/refs/tags/v1.15.3.tar.gz", .url = "https://github.com/gabime/spdlog/archive/refs/tags/v1.16.0.tar.gz",
.hash = "N-V-__8AAJQ8EgDzeZlwEXLTaVfJv-mmsc5kVpvmDQ7wy3Y6", .hash = "N-V-__8AAP9pEgDmKW9wXR5HVBNwf_xFkTl6m0_wZn6yySIz",
}, },
}, },
.paths = .{ .paths = .{

5
manifest.scm Normal file
View file

@ -0,0 +1,5 @@
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.
(specifications->manifest (list "zig@0.15" "git" "zig-zls@0.15"))