aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-12 00:50:16 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-12 00:50:16 -0400
commitd27ef1aaef8ac12801ba4e6c2ed748c7151096a7 (patch)
tree5f2a20f01987e297bbe973e5fe3d01493ae97f78 /src/codegen.cpp
parentf79faf9008c8e4c5539780e712012c55ab1b3cfc (diff)
downloadzig-d27ef1aaef8ac12801ba4e6c2ed748c7151096a7.tar.gz
zig-d27ef1aaef8ac12801ba4e6c2ed748c7151096a7.zip
Zig treats -lstdc++ identically to -lc++
Thanks to Michael Dusan for figuring out what was happening here. closes #5012
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 5214d49a30..6a1db495a2 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -9252,6 +9252,7 @@ void add_cc_args(CodeGen *g, ZigList<const char *> &args, const char *out_dep_pa
}
args.append("-nostdinc");
+ args.append("-nostdinc++");
args.append("-fno-spell-checking");
if (g->function_sections) {