RE: llvm?
RE: llvm?
- Subject: RE: llvm?
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Thu, 1 Nov 2007 07:19:40 -0400
- Thread-topic: llvm?
Interesting thought, I hadn't really considered macports. I tend to do
the ususal './configure ; make ; make check ; make install' route, and
not worry about it. I hadn't thought about grabbing from the subversion
repository though, I just grabbed tarballs and hoped that would work,
although that didn't in the past.
Chris, I went ahead and did your suggestion of grabbing the head of off
trunk and started compiling that. So far, so good. In the past, I've
always used the tarballs (our tendency at work is to have trunk be the
bleeding edge, so I shy away from it in other projects) and that caused
me problems. I have no idea why though, they should just be tarballs of
exports from snapshots, right?
Thanks,
Cem Karan
-----Original Message-----
From: Jyrki Wahlstedt [mailto:email@hidden]
Sent: Thursday, November 01, 2007 2:52 AM
To: Chris Hanson
Cc: Karan, Cem (Civ, ARL/CISD); Xcode Users
Subject: Re: llvm?
On 31.10.2007, at 22.27, Chris Hanson wrote:
> On Oct 31, 2007, at 4:06 AM, Cem Karan wrote:
>
>> Except... I can't find llvm on my system. 'locate llvm' doesn't
>> return anything, and neither does spotlight. I'm assuming that XCode
>> 3.0 puts it somewhere that I haven't thought to look at yet, but if
>> someone already knows where it is (and if its name got changed), that
>> would be handy.
>
> LLVM on Leopard is not an end-user or developer technology. That's
> why you're not finding it.
>
> On the other hand, I've found that LLVM is one of the easiest, most
> straightforward Open Source projects that I've found when it comes to
> building it straight from Subversion.
>
> To check out and build LLVM for debugging straight from Subversion:
>
> [Projects]% svn checkout http://llvm.org/svn/llvm-project/llvm/
> trunk llvm
> [Projects]% mkdir build
> [Projects]% pushd build
> [Projects/build]% ../llvm/configure --enable-targets=host-only
> [Projects/build]% make -j 2
>
> (Note: I've only done the above on Leopard.) You can also use a
> packaged distribution from <http://llvm.org/>; LLVM 2.1 was just
> released.
>
Or you can use MacPorts (www.macports.org) containing llvm (2.0 though).
There you can just say 'sudo port install llvm', and that does it. If
llvm is the only thing you are looking for, then it is probably not
worth it to install MacPorts, but if you use other OSS stuff, you could
give it a try.
> One other hint: LLVM is designed such that it can handle parallel
> builds, so do a "make -j X" where X is the number of CPUs you have.
> When doing the above on my 1st-generation 2GHz MacBook Pro, a
> from-scratch "make -j 2" only takes about 5 minutes.
>
> -- Chris
>
!
! Jyrki Wahlstedt
! http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780
6366 EFD9 139C C386
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden