mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
CLI: detect linker color diagnostics flags
This commit is contained in:
parent
705e9cb3ca
commit
d2650eb570
@ -2055,6 +2055,14 @@ fn buildOutputType(
|
||||
// This option does not do anything.
|
||||
} else if (mem.eql(u8, arg, "--export-all-symbols")) {
|
||||
rdynamic = true;
|
||||
} else if (mem.eql(u8, arg, "--color-diagnostics") or
|
||||
mem.eql(u8, arg, "--color-diagnostics=always"))
|
||||
{
|
||||
color = .on;
|
||||
} else if (mem.eql(u8, arg, "--no-color-diagnostics") or
|
||||
mem.eql(u8, arg, "--color-diagnostics=never"))
|
||||
{
|
||||
color = .off;
|
||||
} else if (mem.eql(u8, arg, "-s") or mem.eql(u8, arg, "--strip-all") or
|
||||
mem.eql(u8, arg, "-S") or mem.eql(u8, arg, "--strip-debug"))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user