authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-18 19:16:47-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-20 20:59:52-08:00
log77af309cb6e731a1f30967acc9e1204955c7d242
treea5374f39ec8e40687d3597d1273836372fd662f4
parent28da5302714734ba48c44f2a0e88cf4229bcd9f7

Compilation: take advantage of `@splat`


1 files changed, 4 insertions(+), 4 deletions(-)

src/Compilation.zig+4-4
......@@ -289,12 +289,12 @@ const QueuedJobs = struct {
289289 compiler_rt_obj: bool = false,
290290 fuzzer_lib: bool = false,
291291 update_builtin_zig: bool,
292 musl_crt_file: [@typeInfo(musl.CrtFile).@"enum".fields.len]bool = [1]bool{false} ** @typeInfo(musl.CrtFile).@"enum".fields.len,
293 glibc_crt_file: [@typeInfo(glibc.CrtFile).@"enum".fields.len]bool = [1]bool{false} ** @typeInfo(glibc.CrtFile).@"enum".fields.len,
292 musl_crt_file: [@typeInfo(musl.CrtFile).@"enum".fields.len]bool = @splat(false),
293 glibc_crt_file: [@typeInfo(glibc.CrtFile).@"enum".fields.len]bool = @splat(false),
294294 /// one of WASI libc static objects
295 wasi_libc_crt_file: [@typeInfo(wasi_libc.CrtFile).@"enum".fields.len]bool = [1]bool{false} ** @typeInfo(wasi_libc.CrtFile).@"enum".fields.len,
295 wasi_libc_crt_file: [@typeInfo(wasi_libc.CrtFile).@"enum".fields.len]bool = @splat(false),
296296 /// one of the mingw-w64 static objects
297 mingw_crt_file: [@typeInfo(mingw.CrtFile).@"enum".fields.len]bool = [1]bool{false} ** @typeInfo(mingw.CrtFile).@"enum".fields.len,
297 mingw_crt_file: [@typeInfo(mingw.CrtFile).@"enum".fields.len]bool = @splat(false),
298298 /// all of the glibc shared objects
299299 glibc_shared_objects: bool = false,
300300 /// libunwind.a, usually needed when linking libc