only use -nostdinc++
on c++ files
This is a follow-up to d27ef1aaef
and avoids compiler warnings:
warning: argument unused during compilation: '-nostdinc++'
This commit is contained in:
parent
d27ef1aaef
commit
20b2457388
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user