aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build.zig
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2024-09-02 22:32:21 +0100
committerLinus Groh <mail@linusgroh.de>2024-09-12 16:01:23 +0100
commit8588964972acc473c09e21958a7e52247c978603 (patch)
treefb5e35e76e63b6d4aabdb0edf678d4d986a56110 /lib/std/Build.zig
parenteccd06f5d01d05286691bc77e6d1e582bb14b7b1 (diff)
downloadzig-8588964972acc473c09e21958a7e52247c978603.tar.gz
zig-8588964972acc473c09e21958a7e52247c978603.zip
Replace deprecated default initializations with decl literals
Diffstat (limited to 'lib/std/Build.zig')
-rw-r--r--lib/std/Build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build.zig b/lib/std/Build.zig
index 109ebc8be2..236ac16c47 100644
--- a/lib/std/Build.zig
+++ b/lib/std/Build.zig
@@ -111,7 +111,7 @@ pub const ReleaseMode = enum {
/// Settings that are here rather than in Build are not configurable per-package.
pub const Graph = struct {
arena: Allocator,
- system_library_options: std.StringArrayHashMapUnmanaged(SystemLibraryMode) = .{},
+ system_library_options: std.StringArrayHashMapUnmanaged(SystemLibraryMode) = .empty,
system_package_mode: bool = false,
debug_compiler_runtime_libs: bool = false,
cache: Cache,
@@ -119,7 +119,7 @@ pub const Graph = struct {
env_map: EnvMap,
global_cache_root: Cache.Directory,
zig_lib_directory: Cache.Directory,
- needed_lazy_dependencies: std.StringArrayHashMapUnmanaged(void) = .{},
+ needed_lazy_dependencies: std.StringArrayHashMapUnmanaged(void) = .empty,
/// Information about the native target. Computed before build() is invoked.
host: ResolvedTarget,
incremental: ?bool = null,