]> granicus.if.org Git - clang/commitdiff
[driver] Ignore the '--' option, rather then fail. Do so to match gcc's
authorChad Rosier <mcrosier@apple.com>
Mon, 12 Sep 2011 22:43:01 +0000 (22:43 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 12 Sep 2011 22:43:01 +0000 (22:43 +0000)
behavior.
rdar://10110352 and PR10908

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139551 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td

index 2d5e1bc55dd14f4721437440926c3aef73d70bd6..5846c1b5f31011a4584b7712bb2f52fd28190400 100644 (file)
@@ -134,6 +134,7 @@ def ccc_ : Joined<"-ccc-">, Group<ccc_Group>, Flags<[Unsupported]>;
 
 def _HASH_HASH_HASH : Flag<"-###">, Flags<[DriverOption]>,
     HelpText<"Print the commands to run for this compilation">;
+def _DASH_DASH : Flag<"--">, Flags<[DriverOption]>;
 def A : JoinedOrSeparate<"-A">;
 def B : JoinedOrSeparate<"-B">;
 def CC : Flag<"-CC">;