aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.zig2
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;