[cfe-commits] [PATCH] Fix 'CommandLine Error: ...defined more than once'

David Lee live4thee at gmail.com
Thu Dec 20 17:11:04 PST 2012


No matter.  I forgot to mention that I only tested that patch on Linux.

On Fri, Dec 21, 2012 at 7:38 AM, Douglas Gregor <dgregor at apple.com> wrote:

> … and, I have to retract that. This breaks the build on mingw, so I had to
> revert it in r170804.
>
>         - Doug
>
> On Dec 20, 2012, at 3:12 PM, Douglas Gregor <dgregor at apple.com> wrote:
>
> > r170801, thanks!
> >
> >       - Doug
> >
> > On Dec 19, 2012, at 8:25 PM, David Lee <live4thee at gmail.com> wrote:
> >
> >> This patch will eliminate the error messages  when running the
> `PrintFunctionNames'
> >> plugin with clang.
> >>
> >> $ bin/clang -Xclang -load -Xclang lib/PrintFunctionNames.so \
> >>                 -Xclang -add-plugin -Xclang print-fns some-file.cc
> >> <premain>: CommandLine Error: Argument 'info-output-file' defined more
> than once!
> >> <premain>: CommandLine Error: Argument 'track-memory' defined more than
> once!
> >> <premain>: CommandLine Error: Argument 'stats' defined more than once!
> >> ...
> >>
> >> ---
> >> examples/PrintFunctionNames/CMakeLists.txt | 1 -
> >> 1 file changed, 1 deletion(-)
> >>
> >> diff --git a/examples/PrintFunctionNames/CMakeLists.txt
> b/examples/PrintFunctionNames/CMakeLists.txt
> >> index ba6a350..96a8805 100644
> >> --- a/examples/PrintFunctionNames/CMakeLists.txt
> >> +++ b/examples/PrintFunctionNames/CMakeLists.txt
> >> @@ -14,7 +14,6 @@ add_dependencies(PrintFunctionNames
> >>   )
> >>
> >> target_link_libraries(PrintFunctionNames
> >> -  clangFrontend
> >>   clangAST
> >>   )
> >>
> >> --
> >> Thanks,
> >> Li Qun
> >>
> >> _______________________________________________
> >> cfe-commits mailing list
> >> cfe-commits at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> >
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>


-- 
Thanks,
Li Qun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121221/42d3a1f1/attachment.html>


More information about the cfe-commits mailing list