]> granicus.if.org Git - clang/commitdiff
Fix a minor bug in r148582, which made -ccc-host-triple into an alias option.
authorBob Wilson <bob.wilson@apple.com>
Thu, 26 Jan 2012 06:22:30 +0000 (06:22 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 26 Jan 2012 06:22:30 +0000 (06:22 +0000)
I'm not adding a testcase because -ccc-host-triple is slated to be removed,
but clang crashes if you try to use -ccc-host-triple without this fix.

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

include/clang/Driver/Options.td

index 18e77770f8aea54941514121e8dedf3e5d8c561d..ad36b0280f7c9d3102cb8ae3b028a11dc5590f9a 100644 (file)
@@ -759,7 +759,7 @@ def s : Flag<"-s">;
 def target : Separate<"-target">,
   HelpText<"Generate code for the given target">;
 // We should deprecate the use of -ccc-host-triple, and then remove.
-def ccc_host_triple : Flag<"-ccc-host-triple">, Alias<target>;
+def ccc_host_triple : Separate<"-ccc-host-triple">, Alias<target>;
 def time : Flag<"-time">,
   HelpText<"Time individual commands">;
 def traditional_cpp : Flag<"-traditional-cpp">;