mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Merge pull request #14087 from jvolkman/issue-14046
Add support for -undefined error
This commit is contained in:
commit
101c259da7
@ -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});
|
||||
}
|
||||
@ -2071,6 +2073,8 @@ fn buildOutputType(
|
||||
}
|
||||
if (mem.eql(u8, "dynamic_lookup", linker_args.items[i])) {
|
||||
linker_allow_shlib_undefined = true;
|
||||
} else if (mem.eql(u8, "error", linker_args.items[i])) {
|
||||
linker_allow_shlib_undefined = false;
|
||||
} else {
|
||||
fatal("unsupported -undefined option '{s}'", .{linker_args.items[i]});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user