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

Douglas Gregor dgregor at apple.com
Thu Dec 20 15:38:28 PST 2012


… 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





More information about the cfe-commits mailing list