mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 23:23:07 +00:00
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.
This commit is contained in:
parent
a70cbe779a
commit
b0bfde917b
@ -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});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user