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

This is a follow-up to d27ef1aaef
and avoids compiler warnings:

    warning: argument unused during compilation: '-nostdinc++'
master
Michael Dusan 2020-04-12 01:03:27 -04:00
parent d27ef1aaef
commit 20b2457388
No known key found for this signature in database
GPG Key ID: ED4C5BA849FA1B74
1 changed files with 3 additions and 1 deletions

View File

@ -9252,7 +9252,9 @@ void add_cc_args(CodeGen *g, ZigList<const char *> &args, const char *out_dep_pa
}
args.append("-nostdinc");
args.append("-nostdinc++");
if (source_kind == FileExtCpp) {
args.append("-nostdinc++");
}
args.append("-fno-spell-checking");
if (g->function_sections) {