Update build instructions for clang.

It appears that latest Xcode for Lion does ship with a clang recent enough to build TextMate.

Also added instructions on how to build clang via homebrew.
This commit is contained in:
Allan Odgaard
2012-08-10 10:33:56 +02:00
parent a3a82c93ce
commit 9637bc58ad

View File

@@ -40,17 +40,25 @@ In practice `hg` ([mercurial][]) is only required for the SCM librarys tests
### OS X 10.7 (Lion)
If you are on OS X 10.7 you need [clang 3.2][] and the [proctools][] package (contains `pgrep` and `pkill` used by the “relaunch” build targets).
If you are on OS X 10.7 you need `pgrep` and `pkill` (used by the “relaunch” build targets). To install using [MacPorts][]:
To install using [MacPorts][]:
sudo port install proctools
sudo port install clang-3.2 clang_select proctools
sudo port select clang mp-clang-3.2
Or (for `pgrep` and `pkill`) using [homebrew][]:
Or using [homebrew][]:
brew install pgrep
### Clang 3.2 / 4.0
You also need a recent version of clang. This should be included with Xcode 4.4+ (available for both Lion and Mountain Lion). If dont have it, you can build [clang 3.2][] from [MacPorts][]:
sudo port install clang-3.2 clang_select
sudo port select clang mp-clang-3.2
Or using [homebrew][]:
brew install --HEAD llvm --with-clang
## Building from within TextMate
You should install the [Ninja][NinjaBundle] and [CxxTest][] bundles. Both can be installed via _Preferences__Bundles_.
@@ -122,7 +130,6 @@ TextMate is a trademark of Allan Odgaard.
[ragel]: http://www.complang.org/ragel/
[mercurial]: http://mercurial.selenic.com/
[clang 3.2]: http://clang.llvm.org/
[proctools]: http://proctools.sourceforge.net/
[MacPorts]: http://www.macports.org/
[homebrew]: http://mxcl.github.com/homebrew/
[NinjaBundle]: https://github.com/avian/ninja.tmbundle