[cfe-dev] Stripped-down Clang/LLVM

Jean-Daniel Dupas devlists at shadowlab.org
Mon Mar 4 01:24:29 PST 2013

Le 3 mars 2013 à 22:31, Daniel Kudrow <dkudrow at gmail.com> a écrit :

> Hi all,
> I'm modifying Clang and LLVM to build a compiler for a c-like
> language. I would like to remove as much of the codebase that I am not
> using as I can to bring down size and debugging time. I can do without
> all of the Objective C and C++ specific elements of Clang and much of
> the target specific code in both Clang and LLVM. Before I spend an
> entire day hacking away at the Makefiles, has anyone done this
> already? Are there modules that I shouldn't waste my time trying to
> extricate from source tree?

Just in case you miss it, you can at least disable some clang parts at configure time using the following options:

--disable-clang-arcmt --disable-clang-rewriter --disable-clang-static-analyzer

-- Jean-Daniel

More information about the cfe-dev mailing list