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

Eitan Adler lists at eitanadler.com
Sun Nov 18 10:41:34 PST 2012


On 18 November 2012 12:11, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> It will execute llvm_unreachable("Invalid program action!"); which is fine
>> for me. FreeBSD really needs just the compiler bits.
>>
>> Note that I am not advocating making this the default, just having a way
>> to make this possible without modifying the sources.
>
> Well, I am just suggesting that Clang crashing on command line
> parameter invoking an action that is disabled during compile-time is
> not the user experience we want to provide for any Clang
> configuration.  A proper error message would be much better.

+1. Even though the FreeBSD build only needs the compiler bits, users
may want more. They should be treated to a useful error message
("feature not available. Remove CLANG_IS_COMPILER_ONLY.") or the like.


-- 
Eitan Adler



More information about the cfe-dev mailing list