Files
packages/anda/langs/zig/bootstrap/0000-remove-native-lib-directories-from-rpath.patch
T
Raboneko 3b0169c5fe chore(zig): Backport so it stops breaking updates on <= F41 (#4793) (#4859)
* chore(zig-bootstrap): Add updbranch label so it stops breaking updates on <= F41



* Rebase onto f41 (I hope)

* Backport Zig stuff

---------


(cherry picked from commit d45c262dce)

Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
2025-05-16 00:33:15 -05:00

19 lines
791 B
Diff

--- a/src/main.zig 2025-04-25 06:01:31.337458939 -0500
+++ b/src/main.zig 2025-04-25 06:03:02.239473385 -0500
@@ -4072,6 +4072,15 @@
try create_module.lib_directories.ensureUnusedCapacity(arena, paths.lib_dirs.items.len);
for (paths.lib_dirs.items) |path| addLibDirectoryWarn2(&create_module.lib_directories, path, true);
+
+ for (paths.lib_dirs.items) |native_lib_dir| {
+ for (0.., create_module.rpath_list.items) |i, rpath_dir| {
+ if (std.mem.eql(u8, native_lib_dir, rpath_dir)) {
+ _ = create_module.rpath_list.orderedRemove(i);
+ break;
+ }
+ }
+ }
}
if (create_module.libc_paths_file) |paths_file| {