commit 8e6865c8eeff477375113f3c56f378d0e40ffecd (tree)
parent 9f6b56ab4ba263f751927d0eee6a87064d65c049
Author: Isaac Freund <ifreund@ifreund.xyz>
Date: Sat, 17 Apr 2021 14:05:13 +0200
std/build: fix linker_allow_shlib_undefined
The relevant flags were renamed in 01a1365 but updating std.build
was overlooked.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/build.zig b/lib/std/build.zig
@@ -2341,7 +2341,7 @@ pub const LibExeObjStep = struct {
try zig_args.append("-ffunction-sections");
}
if (self.linker_allow_shlib_undefined) |x| {
- try zig_args.append(if (x) "--allow-shlib-undefined" else "--no-allow-shlib-undefined");
+ try zig_args.append(if (x) "-fallow-shlib-undefined" else "-fno-allow-shlib-undefined");
}
if (self.single_threaded) {
try zig_args.append("--single-threaded");