aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-03 13:44:56 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-03 13:45:16 -0400
commitcf52f3f99a371fd4cb897afb2ed515ea00927808 (patch)
tree0889ea856a2f637c3fb8729c3b08d35036b99b97 /src/main.cpp
parent11b50e3ad8781fd600961e80aad622c6f5616acc (diff)
downloadzig-cf52f3f99a371fd4cb897afb2ed515ea00927808.tar.gz
zig-cf52f3f99a371fd4cb897afb2ed515ea00927808.zip
zig cc: add -allow-shlib-undefined alias
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cd45d40e5f..4d2775d75a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -833,9 +833,13 @@ static int main0(int argc, char **argv) {
linker_gc_sections = OptionalBoolTrue;
} else if (buf_eql_str(arg, "--no-gc-sections")) {
linker_gc_sections = OptionalBoolFalse;
- } else if (buf_eql_str(arg, "--allow-shlib-undefined")) {
+ } else if (buf_eql_str(arg, "--allow-shlib-undefined") ||
+ buf_eql_str(arg, "-allow-shlib-undefined"))
+ {
linker_allow_shlib_undefined = OptionalBoolTrue;
- } else if (buf_eql_str(arg, "--no-allow-shlib-undefined")) {
+ } else if (buf_eql_str(arg, "--no-allow-shlib-undefined") ||
+ buf_eql_str(arg, "-no-allow-shlib-undefined"))
+ {
linker_allow_shlib_undefined = OptionalBoolFalse;
} else if (buf_eql_str(arg, "-z")) {
i += 1;