Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Call addLinkerArg on root_module for Zig 0.16

Add Zig 0.16.0 build.zig API notes to CLAUDE.md covering linker args,
library/include paths, system libraries, frameworks, and object/archive
file helpers and update zig/build.zig to use the new API.

+8 -1
+7
CLAUDE.md
··· 74 74 ls -la zig/zig-out/bin/rockboxd build-lib/libfirmware.a target/release/librockbox_cli.a 75 75 ``` 76 76 77 + ### Zig 0.16.0 build.zig API notes 78 + - **Linker args**: use `exe.root_module.addLinkerArg("...")` — `exe.addLinkerArg` does **not** exist on `Build.Step.Compile` in 0.16.0; the method lives on `Build.Module`. 79 + - **Library/include paths**: `exe.root_module.addLibraryPath(...)`, `exe.root_module.addIncludePath(...)`. 80 + - **System libraries**: `exe.root_module.linkSystemLibrary("name", .{})`. 81 + - **Frameworks (macOS)**: `exe.root_module.linkFramework("Name", .{})`. 82 + - **Object/archive files**: `exe.root_module.addObjectFile(b.path("..."))` — used for both `.o` and `.a`. 83 + 77 84 ## Runtime configuration 78 85 79 86 Settings file: `~/.config/rockbox.org/settings.toml`
+1 -1
zig/build.zig
··· 119 119 // libopus and libtremor both bundle identical Ogg framing symbols; 120 120 // libspeex and libspeex-voice share bits.c symbols. lld errors on 121 121 // duplicates while macOS ld64 silently picks first. 122 - exe.addLinkerArg("--allow-multiple-definition"); 122 + exe.root_module.addLinkerArg("--allow-multiple-definition"); 123 123 } 124 124 } 125 125