authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-03 13:44:56-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-03 13:45:16-04:00
logcf52f3f99a371fd4cb897afb2ed515ea00927808
tree0889ea856a2f637c3fb8729c3b08d35036b99b97
parent11b50e3ad8781fd600961e80aad622c6f5616acc
signaturelock-open Commit is signed but in an unrecognized format.

zig cc: add -allow-shlib-undefined alias


1 files changed, 6 insertions(+), 2 deletions(-)

src/main.cpp+6-2
......@@ -833,9 +833,13 @@ static int main0(int argc, char **argv) {
833833 linker_gc_sections = OptionalBoolTrue;
834834 } else if (buf_eql_str(arg, "--no-gc-sections")) {
835835 linker_gc_sections = OptionalBoolFalse;
836 } else if (buf_eql_str(arg, "--allow-shlib-undefined")) {
836 } else if (buf_eql_str(arg, "--allow-shlib-undefined") ||
837 buf_eql_str(arg, "-allow-shlib-undefined"))
838 {
837839 linker_allow_shlib_undefined = OptionalBoolTrue;
838 } else if (buf_eql_str(arg, "--no-allow-shlib-undefined")) {
840 } else if (buf_eql_str(arg, "--no-allow-shlib-undefined") ||
841 buf_eql_str(arg, "-no-allow-shlib-undefined"))
842 {
839843 linker_allow_shlib_undefined = OptionalBoolFalse;
840844 } else if (buf_eql_str(arg, "-z")) {
841845 i += 1;