zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b0bfde917b31fbf41775d5fd8e8bc2e7e98bbf4b (tree)
parent a70cbe779adb11faeb88ceffad0cfa729d2eec6e
Author: Jeremy Volkman <jeremy@cedarai.com>
Date:   Tue, 27 Dec 2022 08:15:09 -0800

Add support for -undefined error

`-undefined dynamic_lookup` was added in #13991. `-undefined error` is the
opposite, and can be used to revert an `-undefined dynamic_lookup` flag
specified previously on the command line.

Diffstat:
Msrc/main.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.zig b/src/main.zig @@ -1703,6 +1703,8 @@ fn buildOutputType( .undefined => { if (mem.eql(u8, "dynamic_lookup", it.only_arg)) { linker_allow_shlib_undefined = true; + } else if (mem.eql(u8, "error", it.only_arg)) { + linker_allow_shlib_undefined = false; } else { fatal("unsupported -undefined option '{s}'", .{it.only_arg}); }