| ... | ... | @@ -1386,6 +1386,8 @@ pub const LibExeObjStep = struct { |
| 1386 | 1386 | /// safely garbage-collected during the linking phase. |
| 1387 | 1387 | link_function_sections: bool = false, |
| 1388 | 1388 | |
| 1389 | linker_allow_shlib_undefined: ?bool = null, |
| 1390 | |
| 1389 | 1391 | /// Uses system Wine installation to run cross compiled Windows build artifacts. |
| 1390 | 1392 | enable_wine: bool = false, |
| 1391 | 1393 | |
| ... | ... | @@ -2338,6 +2340,9 @@ pub const LibExeObjStep = struct { |
| 2338 | 2340 | if (self.link_function_sections) { |
| 2339 | 2341 | try zig_args.append("-ffunction-sections"); |
| 2340 | 2342 | } |
| 2343 | if (self.linker_allow_shlib_undefined) |x| { |
| 2344 | try zig_args.append(if (x) "--allow-shlib-undefined" else "--no-allow-shlib-undefined"); |
| 2345 | } |
| 2341 | 2346 | if (self.single_threaded) { |
| 2342 | 2347 | try zig_args.append("--single-threaded"); |
| 2343 | 2348 | } |