zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c8541f0a12bcd07bfc24f565a58239cb5bde4c59 (tree)
parent fad2142ecf2dcfe4b73f1707559dce7e8e9fce50
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Mon,  5 Dec 2022 04:49:47 -0500

cc: remove argument parsing from only-c builds

Diffstat:
Msrc/main.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.zig b/src/main.zig @@ -1406,6 +1406,8 @@ fn buildOutputType( } }, .cc, .cpp => { + if (build_options.only_c) unreachable; + emit_h = .no; soname = .no; ensure_libc_on_non_freestanding = true;