authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2020-04-12 01:03:27-04:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2020-04-12 01:03:27-04:00
log20b2457388c924ec01cc6ea9d5331edbf27176ff
tree23c4b7dd040e63e9d1b112b8206fd58771472248
parentd27ef1aaef8ac12801ba4e6c2ed748c7151096a7
signaturelock-open Commit is signed but in an unrecognized format.

only use `-nostdinc++` on c++ files

This is a follow-up to d27ef1aaef8ac12801ba4e6c2ed748c7151096a7 and avoids compiler warnings: warning: argument unused during compilation: '-nostdinc++'

1 files changed, 3 insertions(+), 1 deletions(-)

src/codegen.cpp+3-1
......@@ -9252,7 +9252,9 @@ void add_cc_args(CodeGen *g, ZigList<const char *> &args, const char *out_dep_pa
92529252 }
92539253
92549254 args.append("-nostdinc");
9255 args.append("-nostdinc++");
9255 if (source_kind == FileExtCpp) {
9256 args.append("-nostdinc++");
9257 }
92569258 args.append("-fno-spell-checking");
92579259
92589260 if (g->function_sections) {