Replace deprecated function on build.zig#4618
Conversation
The deprecated function addStaticLibrary() has been entirely removed so it no longer builds on recent dev versions of zig.
|
Deprecated in which version? We target releases (14.1 currently), not HEAD. |
It is deprecated in 0.14.1, see https://ziglang.org/documentation/0.14.1/std/#std.Build. It would be nice to update this sooner, at least I could avoid having too many personal forks just to fix the build errors. |
|
Successfully created backport PR for |
|
@nvlled thank you. Can you please make the same changes to the file in |
|
@clason okay |
|
(best to wait for the zig fmt PR to be merged, though) |
|
@nvlled Turns out that the template file is already formatted so no need to wait to make that change. |
|
Hmm, the template files actually has a lot of problems, aside from using the deprecated build functions. I'll include those fixes in the pull request as well. |
|
Why am I not surprised ;) |
The deprecated function addStaticLibrary() has been removed entirely so it no longer builds on recent dev versions of zig.
Also the build.zig weirdly uses two-space indentation, but I didn't format the whole file to avoid cluttering the diff.