• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: llvm?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: llvm?


  • Subject: Re: llvm?
  • From: Jyrki Wahlstedt <email@hidden>
  • Date: Thu, 1 Nov 2007 08:51:58 +0200


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


References: 
 >llvm? (From: Cem Karan <email@hidden>)
 >Re: llvm? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Still no way to view CFString in custom data fomatter, huh?
  • Previous by thread: Re: llvm?
  • Next by thread: Distributed Build confusion
  • Index(es):
    • Date
    • Thread