Allow Zig to be built with clang 11 and -Werror

This was brought to the horizon when using zig-bootstrap to cross compile
Zig for windows-gnu.
This commit is contained in:
Timon Kruiper
2020-11-10 01:40:46 +01:00
committed by Veikka Tuominen
parent bef140c0a2
commit 66d6930b5c
2 changed files with 4 additions and 13 deletions

View File

@@ -1062,6 +1062,7 @@ bool ZigLLDLink(ZigLLVM_ObjectFormatType oformat, const char **args, size_t arg_
case ZigLLVM_UnknownObjectFormat:
case ZigLLVM_XCOFF:
assert(false); // unreachable
break;
case ZigLLVM_COFF:
return lld::coff::link(array_ref_args, false, diag_stdout, diag_stderr);
@@ -1074,6 +1075,9 @@ bool ZigLLDLink(ZigLLVM_ObjectFormatType oformat, const char **args, size_t arg_
case ZigLLVM_Wasm:
return lld::wasm::link(array_ref_args, false, diag_stdout, diag_stderr);
default:
break;
}
assert(false); // unreachable
abort();