gollvm: accept and ignore "-isystem" command line flag
Accept (and ignore) the -isystem option. This is another one of those
C-specific flags that it is helpful to not issue an error on.
Change-Id: Iede095e1c4ccf972e4558eb6c15275fd1346a4c7
Reviewed-on: https://go-review.googlesource.com/120415
Reviewed-by: Cherry Zhang <cherryyz@google.com>
diff --git a/driver/GollvmOptions.td b/driver/GollvmOptions.td
index 968d6a0..b1b1fd6 100644
--- a/driver/GollvmOptions.td
+++ b/driver/GollvmOptions.td
@@ -123,6 +123,10 @@
Flags<[Ignored]>, MetaVarName<"<macro>=<value>">,
HelpText<"This option is ignored">;
+def isystem : JoinedOrSeparate<["-"], "isystem">, Group<CompileOnly_Group>,
+ Flags<[Ignored]>,
+ HelpText<"This option is ignored">, MetaVarName<"<directory>">;
+
def O : Joined<["-"], "O">, Group<O_Group>,
HelpText<"Set optimization level">;