update to zig version 0.14.1
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ const SYSTEM_VERSION = system.SYSTEM_VERSION;
|
||||
// },
|
||||
// and the other tags being the respective Foundry type name
|
||||
pub fn Compendium(base_type: BaseType, Entry: type) type {
|
||||
if (std.meta.activeTag(@typeInfo(Entry)) != .Union) @compileError("Entry must be a tagged union.");
|
||||
if (@typeInfo(Entry).Union.tag_type == null) @compileError("Entry must be a tagged union.");
|
||||
if (std.meta.activeTag(@typeInfo(Entry)) != .@"union") @compileError("Entry must be a tagged union.");
|
||||
if (@typeInfo(Entry).@"union".tag_type == null) @compileError("Entry must be a tagged union.");
|
||||
|
||||
return struct {
|
||||
entries: []const Entry = &.{},
|
||||
|
||||
@@ -27,10 +27,10 @@ fn build_leveldb(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
|
||||
static_lib.installHeadersDirectory(source.path("include"), "", .{});
|
||||
|
||||
if (target.result.os.tag == .windows) {
|
||||
static_lib.defineCMacro("LEVELDB_PLATFORM_WINDOWS", "1");
|
||||
static_lib.root_module.addCMacro("LEVELDB_PLATFORM_WINDOWS", "1");
|
||||
static_lib.addCSourceFile(.{ .file = source.path("util/env_windows.cc") });
|
||||
} else {
|
||||
static_lib.defineCMacro("LEVELDB_PLATFORM_POSIX", "1");
|
||||
static_lib.root_module.addCMacro("LEVELDB_PLATFORM_POSIX", "1");
|
||||
static_lib.addCSourceFile(.{ .file = source.path("util/env_posix.cc") });
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
.{
|
||||
.name = "leveldb",
|
||||
.name = .leveldb,
|
||||
.version = "1.0.0",
|
||||
.fingerprint = 0x10c9e9cb2b1d4857,
|
||||
.paths = .{
|
||||
"build.zig",
|
||||
"build.zig.zon",
|
||||
@@ -11,5 +12,4 @@
|
||||
.path = "libs/leveldb"
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user