[cfe-commits] [PATCH] Fix 'CommandLine Error: ...defined more than once'
Douglas Gregor
dgregor at apple.com
Thu Dec 20 15:12:57 PST 2012
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
More information about the cfe-commits
mailing list