Skip to content

Commit 1f7d93c

Browse files
committed
Process -std= flag to allow remote preprocessing
Fixes icecc#630.
1 parent 4e8f825 commit 1f7d93c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/arg.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ int analyse_argv(const char * const *argv, CompileJob &job, bool icerun, list<st
690690
} else if (str_startswith("--target=", a)) {
691691
seen_target = true;
692692
args.append(a, Arg_Rest);
693+
} else if (str_startswith("-std=", a)) {
694+
standard = a + strlen("-std=");
695+
args.append(a, Arg_Rest);
693696
} else if (str_equal("-Wunused-macros", a)
694697
|| str_equal("-Werror=unused-macros", a)) {
695698
wunused_macros = true;

0 commit comments

Comments
 (0)