Skip to content

Commit f6d7279

Browse files
TrottFishrock123
authored andcommitted
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 8956432 commit f6d7279

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
@@ -118,7 +127,7 @@ This option will build with "small" (English only) support, but
118127
the full `Intl` (ECMA-402) APIs. With `--download=all` it will
119128
download the ICU library as needed.
120129

121-
##### Unix / Macintosh:
130+
##### Unix / OS X:
122131

123132
```text
124133
$ ./configure --with-intl=small-icu --download=all
@@ -141,7 +150,7 @@ data at runtime.
141150
With the `--download=all`, this may download ICU if you don't have an
142151
ICU in `deps/icu`.
143152

144-
##### Unix / Macintosh:
153+
##### Unix / OS X:
145154

146155
```text
147156
$ ./configure --with-intl=full-icu --download=all
@@ -158,7 +167,7 @@ $ ./configure --with-intl=full-icu --download=all
158167
The `Intl` object will not be available. This is the default at
159168
present, so this option is not normally needed.
160169

161-
##### Unix / Macintosh:
170+
##### Unix / OS X:
162171

163172
```text
164173
$ ./configure --with-intl=none
@@ -170,7 +179,7 @@ $ ./configure --with-intl=none
170179
> vcbuild intl-none
171180
```
172181

173-
#### Use existing installed ICU (Unix / Macintosh only):
182+
#### Use existing installed ICU (Unix / OS X only):
174183

175184
```text
176185
$ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
@@ -186,7 +195,7 @@ You can find other ICU releases at
186195
Download the file named something like `icu4c-**##.#**-src.tgz` (or
187196
`.zip`).
188197

189-
##### Unix / Macintosh
198+
##### Unix / OS X
190199

191200
```text
192201
# from an already-unpacked ICU:

0 commit comments

Comments
 (0)