Skip to content

Commit

Permalink
Process -std= flag to allow remote preprocessing
Browse files Browse the repository at this point in the history
Fixes icecc#630.
  • Loading branch information
mliszcz committed Mar 22, 2024
1 parent 4e8f825 commit 1f7d93c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/arg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,9 @@ int analyse_argv(const char * const *argv, CompileJob &job, bool icerun, list<st
} else if (str_startswith("--target=", a)) {
seen_target = true;
args.append(a, Arg_Rest);
} else if (str_startswith("-std=", a)) {
standard = a + strlen("-std=");
args.append(a, Arg_Rest);
} else if (str_equal("-Wunused-macros", a)
|| str_equal("-Werror=unused-macros", a)) {
wunused_macros = true;
Expand Down

0 comments on commit 1f7d93c

Please sign in to comment.