[cfe-dev] how to build my clang based tool
moataz ragab
mtzrgb at gmail.com
Sat Oct 10 09:32:24 PDT 2009
I would like to use the build system of llvm to build my tool that is based
on clang.
I made a new directory under clang/tools with the name of the tool
"polyextract". I copied the CMakelist.txt and Makefile from the clang-cc and
modified them
I then configure from llvm trunk and make, but unfortunately I only get the
object file generated and no executable is generated in the Debug/bin
I would appreciate your help. Sorry I am not familiar with the build
systems.
Attached are the files I modified
Thanks
Moataz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091010/0f90124f/attachment.html>
-------------- next part --------------
set(LLVM_NO_RTTI 1)
set( LLVM_USED_LIBS
clangFrontend
clangCodeGen
clangAnalysis
clangRewrite
clangSema
clangAST
clangParse
clangLex
clangBasic
)
set( LLVM_LINK_COMPONENTS
bitreader
bitwriter
codegen
ipo
selectiondag
)
add_clang_executable(polyextract
polyextract.cpp
)
add_dependencies(polyextract clang-headers)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 1076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091010/0f90124f/attachment.obj>
More information about the cfe-dev
mailing list