aboutsummaryrefslogtreecommitdiff
path: root/BOOTSTRAP-MACOSX.cli
blob: caded968fe40740fc175f4eba395e18d6bd3df7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// file      : BOOTSTRAP-MACOSX.cli
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

"
The \c{build2} toolchain requires Mac OS version 10.5 (Leopard) or later. We
will also be using the system C++ toolchain that comes with the Xcode Command
Line Tools. You should be able to use other/custom C++ toolchains, however,
this is the only configuration that is tested and guaranteed to work.

To verify that Command Line Tools are installed, run:

\
$ clang++ --version
\

It should produce something along these lines:

\
Apple LLVM version X.Y.Z (clang-A.B.C) (based on LLVM M.N.P)
\

To install Command Line Tools, run:

\
$ xcode-select --install
\

Also, if you plan to install your own or use system-installed libraries, it
is recommended to install the \c{pkg-config} utility available from
\l{https://pkg-config.freedesktop.org pkg-config.freedesktop.org}. For
example, to download, build, and install version \c{0.29.2} (the latest
available at the time of writing), run:

\
$ curl -O https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
$ tar xfz pkg-config-0.29.2.tar.gz
$ cd pkg-config-0.29.2
$ ./configure --prefix=/usr/local CC=clang --with-internal-glib
$ make
$ sudo make install
$ pkg-config --version
\

Once this is done continue with \l{#BOOTSTRAP-UNIX Bootstrapping on UNIX}.
"