[cfe-dev] Clang as a compiler-only tool

Douglas Gregor dgregor at apple.com
Tue Dec 4 11:08:14 PST 2012


On Dec 4, 2012, at 10:49 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

>> Two patches attaches - one for clang that splits CLANG_IS_COMPILER_ONLY to
>> CLANG_DISABLE_REWRITER, CLANG_DISABLE_ARCMT and CLANG_DISABLE_STATIC_ANALYZER.
>> 
>> And one for llvm that attempts to introduce --disable-clang-arcmt,
>> --disable-clang-rewriter and --disable-clang-static-analyzer to llvm
>> configure.
>> 
>> I only need the clang part to be committed but I tried to provide
>> autoconf part too.
> 
> I think I agree with Douglas that positive flags would be better than
> negative ones. Can you change the patch to have, for example, a
> --enable-clang-rewriter that defaults to true? The way that
> AC_ARG_ENABLE works you should write just
> 
> AC_ARG_ENABLE(clang-rewriter, ...)
> 
> Remember to regenerate configure :-)
> 
> LGTM with those changes.


As Jordan notes, we actually have to disable building these pieces at least in the Makefile-based build system for this patch to be useful.

	- Doug



More information about the cfe-dev mailing list