mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
zig cc: add -allow-shlib-undefined alias
This commit is contained in:
parent
11b50e3ad8
commit
cf52f3f99a
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue