File 0002-no-lld-libs-and-includes.patch of Package zig
--- zig-0.14.1.orig/build.zig 2025-06-27 06:25:05.289947907 +0800
+++ zig-0.14.1/build.zig 2025-06-27 07:48:57.916734379 +0800
@@ -749,12 +749,9 @@
cfg.cmake_static_library_suffix,
}),
}) });
- assert(cfg.lld_include_dir.len != 0);
- mod.addIncludePath(.{ .cwd_relative = cfg.lld_include_dir });
mod.addIncludePath(.{ .cwd_relative = cfg.llvm_include_dir });
mod.addLibraryPath(.{ .cwd_relative = cfg.llvm_lib_dir });
addCMakeLibraryList(mod, cfg.clang_libraries);
- addCMakeLibraryList(mod, cfg.lld_libraries);
addCMakeLibraryList(mod, cfg.llvm_libraries);
if (use_zig_libcxx) {
@@ -835,10 +832,6 @@
mod.linkSystemLibrary(lib_name, .{});
}
- for (lld_libs) |lib_name| {
- mod.linkSystemLibrary(lib_name, .{});
- }
-
for (llvm_libs) |lib_name| {
mod.linkSystemLibrary(lib_name, .{});
}
@@ -942,8 +935,6 @@
cmake_static_library_suffix: []const u8,
cxx_compiler: []const u8,
cxx_compiler_arg1: []const u8,
- lld_include_dir: []const u8,
- lld_libraries: []const u8,
clang_libraries: []const u8,
llvm_lib_dir: []const u8,
llvm_include_dir: []const u8,
@@ -1009,8 +1000,6 @@
.cmake_static_library_suffix = undefined,
.cxx_compiler = undefined,
.cxx_compiler_arg1 = "",
- .lld_include_dir = undefined,
- .lld_libraries = undefined,
.clang_libraries = undefined,
.llvm_lib_dir = undefined,
.llvm_include_dir = undefined,
@@ -1045,14 +1034,6 @@
.field = "cxx_compiler_arg1",
},
.{
- .prefix = "#define ZIG_LLD_INCLUDE_PATH ",
- .field = "lld_include_dir",
- },
- .{
- .prefix = "#define ZIG_LLD_LIBRARIES ",
- .field = "lld_libraries",
- },
- .{
.prefix = "#define ZIG_CLANG_LIBRARIES ",
.field = "clang_libraries",
},