mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
only use -nostdinc++ on c++ files
This is a follow-up to d27ef1aaef8ac12801ba4e6c2ed748c7151096a7
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…
x
Reference in New Issue
Block a user