[cfe-commits] [PATCH] Fix 'CommandLine Error: ...defined more than once'
David Lee
live4thee at gmail.com
Wed Dec 19 20:25:38 PST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121220/d78f470d/attachment.html>
More information about the cfe-commits
mailing list