[cfe-users] Building llvm/clang with another version of clang
Dmitri Gribenko
gribozavr at gmail.com
Sat Jan 5 10:18:25 PST 2013
On Sat, Jan 5, 2013 at 7:58 PM, Edward Diener
<eldlistmailingz at tropicsoft.com> wrote:
> On 01/05/2013 09:16 AM, Dmitri Gribenko wrote:
>> On Sat, Jan 5, 2013 at 7:31 AM, Edward Diener
>> <eldlistmailingz at tropicsoft.com> wrote:
>>> Is it possible to build llvm/clang with a previous version of clang
>>> installed as a binary ? If so, how do I get llvm/configure to use the binary
>>> version of clang rather than gcc to build the latest version of llvm/clang ?
>>
>> configure (but not CMake) will check for 'clang' in PATH and prefer to
>> use it instead of 'gcc' or 'cc'. So just ensure that the previous
>> version of clang is in your PATH.
>
> Yes, I discovered this. This contradicts what LLVM has in its own
> getting started page at
> http://llvm.org/docs/GettingStarted.html#local-llvm-configuration.
I have updated docs now.
> Doesn't the clang 3.0 binaries ship with its own version of the C++ and
> C header files ?
No, clang does not include a complete standard library. It does
include a few system headers
(clang-installation-dir/lib/clang/3.3/include), but that is not a
complete standard library.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-users
mailing list