Skip to content

Commit feda15b

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: update build instructions for OS X
Building Node.js on OS X requires XCode (because node-gyp requires XCode). Add that information to BUILDING.md. Additionally, this changes references to `Macintosh` in BUILDING.md to refer to `OS X`. This is consistent with the way other references are to operating system families (`Unix`, `Windows`) and not brand names or hardware architectures. PR-URL: #6309 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent 3d1a3e4 commit feda15b

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

BUILDING.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,25 @@ If you consistently can reproduce a test failure, search for it in the
99
file a new issue.
1010

1111

12-
### Unix / Macintosh
12+
### Unix / OS X
1313

1414
Prerequisites:
1515

1616
* `gcc` and `g++` 4.8 or newer, or
1717
* `clang` and `clang++` 3.4 or newer
1818
* Python 2.6 or 2.7
1919
* GNU Make 3.81 or newer
20+
21+
On OS X, you will also need:
22+
* [Xcode](https://developer.apple.com/xcode/download/)
23+
* You also need to install the `Command Line Tools` via Xcode. You can find
24+
this under the menu `Xcode -> Preferences -> Downloads`
25+
* This step will install `gcc` and the related toolchain containing `make`
26+
27+
On FreeBSD and OpenBSD, you may also need:
2028
* libexecinfo (FreeBSD and OpenBSD only)
2129

30+
2231
```text
2332
$ ./configure
2433
$ make
@@ -133,7 +142,7 @@ This option will build with "small" (English only) support, but
133142
the full `Intl` (ECMA-402) APIs. With `--download=all` it will
134143
download the ICU library as needed.
135144

136-
##### Unix / Macintosh:
145+
##### Unix / OS X:
137146

138147
```text
139148
$ ./configure --with-intl=small-icu --download=all
@@ -156,7 +165,7 @@ data at runtime.
156165
With the `--download=all`, this may download ICU if you don't have an
157166
ICU in `deps/icu`.
158167

159-
##### Unix / Macintosh:
168+
##### Unix / OS X:
160169

161170
```text
162171
$ ./configure --with-intl=full-icu --download=all
@@ -173,7 +182,7 @@ $ ./configure --with-intl=full-icu --download=all
173182
The `Intl` object will not be available. This is the default at
174183
present, so this option is not normally needed.
175184

176-
##### Unix / Macintosh:
185+
##### Unix / OS X:
177186

178187
```text
179188
$ ./configure --with-intl=none
@@ -185,7 +194,7 @@ $ ./configure --with-intl=none
185194
> vcbuild intl-none
186195
```
187196

188-
#### Use existing installed ICU (Unix / Macintosh only):
197+
#### Use existing installed ICU (Unix / OS X only):
189198

190199
```text
191200
$ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
@@ -201,7 +210,7 @@ You can find other ICU releases at
201210
Download the file named something like `icu4c-**##.#**-src.tgz` (or
202211
`.zip`).
203212

204-
##### Unix / Macintosh
213+
##### Unix / OS X
205214

206215
```text
207216
# from an already-unpacked ICU:

0 commit comments

Comments
 (0)