[cfe-dev] how to build my clang based tool
Axel.Naumann at cern.ch
Sun Oct 11 05:46:01 CDT 2009
On 2009-10-11 01:45, moataz ragab wrote:
> I have managed to get it the executable generated by adding my directory
> to the Makefile in clang/tools directory.
This is also what we do for our tool. Which reminds me that it would be
nice to have tools/Makefile and CMakeLists.txt automatically detect and
build additional tools. I'll suggest a patch.
> So the LLVM and Clang uses a mix of cmake and Makefiles? Can you give an
> abstract view of how the build process works?
LLVM can be built with either CMake or "../src/configure; make". They
are mostly equivalent.
> On Sat, Oct 10, 2009 at 6:32 PM, moataz ragab <mtzrgb at gmail.com
> <mailto:mtzrgb at gmail.com>> wrote:
> 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
> I would appreciate your help. Sorry I am not familiar with the build
> Attached are the files I modified
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev