Merge pull request #14087 from jvolkman/issue-14046

Add support for -undefined error
This commit is contained in:
Jakub Konka 2022-12-28 16:27:42 +01:00 committed by GitHub
commit 101c259da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]});
}