diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2022-12-05 04:49:47 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-12-06 12:15:04 -0700 |
| commit | c8541f0a12bcd07bfc24f565a58239cb5bde4c59 (patch) | |
| tree | 716923b9da8d11776dbf6b2de1ea0f9c3c8aa461 /src/main.zig | |
| parent | fad2142ecf2dcfe4b73f1707559dce7e8e9fce50 (diff) | |
| download | zig-c8541f0a12bcd07bfc24f565a58239cb5bde4c59.tar.gz zig-c8541f0a12bcd07bfc24f565a58239cb5bde4c59.zip | |
cc: remove argument parsing from only-c builds
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index c73e8acaf8..1db5693e36 100644 --- 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; |
